#787BAF color
The hex color #787BAF is a desaturated blue.
In the RGB color model it is made of 47.1% red, 48.2% green and 68.6% blue (120, 123, 175).
Its hue angle is 237°, with 26% saturation and 58% lightness. For print, the CMYK equivalent is 31% cyan, 30% magenta, 0% yellow and 31% black.
The closest named color is Aster (#867BA9), a difference of 4.9 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.25:1).
#787BAF color codes
| HEX | #787BAF | |
|---|---|---|
| RGB | rgb(120, 123, 175) | |
| RGB percent | rgb(47.1%, 48.2%, 68.6%) | |
| HSL | hsl(237, 26%, 58%) | |
| HSV / HSB | hsv(237, 31%, 69%) | |
| CMYK | cmyk(31%, 30%, 0%, 31%) | |
| CIE LAB | lab(53.23, 11.21, -27.9) | |
| CIE LCH | lch(53.23, 30.07, 291.89) | |
| CIE XYZ | xyz(22.564, 21.253, 43.463) | |
| Decimal | 7895983 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #787BAF, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #787BAF | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.25:1 | Pass | Fail | Pass |
| Sample text | 4:1 | Fail | Fail | Pass |
| #787BAF as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4:1 | Fail | Fail | Pass |
| Sample text | 5.25:1 | Pass | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #787BAF looks to people with the most common types of color vision deficiency.
#6c81b1Protanopia
no red cones#697daeDeuteranopia
no green cones#6a858dTritanopia
no blue cones#7f7f7fAchromatopsia
no color vision
CSS examples
.background { background-color: #787baf; }
.text { color: #787baf; }
.border { border: 2px solid #787baf; }
.transparent { background-color: rgb(120 123 175 / 50%); }
.gradient { background: linear-gradient(to right, #787baf, #9178af); }
Similar colors
#867ba9Aster#7181a4English Manor#777799Stormy Horizon#6677bbFlood#6d83bbOrbital#7f8cb8Galactic Gossamer#65769aMisty Harbour#636ca8Twinkle Night
Closest common color name: Lavender Purple.
Questions
- What color is #787BAF?
- #787BAF is a desaturated blue, closest to the named color Aster. It belongs to the blue family of colors.
- What is the RGB value of #787BAF?
- The RGB value is 120, 123, 175: 120 red, 123 green and 175 blue on a 0 to 255 scale.
- What is the complementary color of #787BAF?
- The complementary color is #AFAC78, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #787BAF?
- Black text. Black text has a contrast ratio of 5.25:1 and white text 4:1. WCAG asks for at least 4.5:1 for normal text.