#787F31#787F31
#787F31 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.102 H 113.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #787F31 |
|---|---|
| RGB | rgb(120, 127, 49) |
| HSL | hsl(65, 44%, 35%) |
| HSV | hsv(65, 61%, 50%) |
| CMYK | cmyk(5.5%, 0%, 61.4%, 50.2%) |
| CIE-LAB | lab(51.14, -13.98, 40.47) |
| CIE-LCH | lch(51.14, 42.81, 109.05°) |
| OKLab | oklab(57.4% -0.0413 0.0931) |
| OKLCH | oklch(57.4% 0.102 113.9) |
| XYZ | xyz(15.8898, 19.3938, 5.8115) |
| Luminance | 0.1939 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 3.73
Olive Drab
#6F7632
ΔE00 3.82
Khaki Green
#728639
ΔE00 4.09
Murky Green
#6C7A0E
ΔE00 4.45
Dirty Green
#667E2C
ΔE00 4.79
Shit Green
#758000
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F31 #38317F
analogous
#7F5F31 #787F31 #517F31
triadic
#787F31 #31787F #7F3178
tetradic
#787F31 #317F5F #38317F #7F3151
square
#787F31 #317F5F #38317F #7F3151
split-complementary
#787F31 #31517F #5F317F
monochromatic
#25270F #4E5320 #787F31 #A2AB42 #BCC466
Accessibility & contrast
On white
4.30
#787F31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#787F31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F31
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F31 | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#887B36
Tritanopia (blue-blind)
#7F786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f31; /* rgb */ color: rgb(120, 127, 49); /* oklch */ color: oklch(57.4% 0.102 113.9);
Tailwind
colors: {
custom: {
50: '#a1a46d',
500: '#787f31',
950: '#000000',
},
}SCSS
$custom: #787f31; $custom-light: #a1a46d; $custom-dark: #000000;
JSON
{
"hex": "#787f31",
"rgb": {
"r": 120,
"g": 127,
"b": 49
},
"hsl": {
"h": 65.385,
"s": 44.318,
"l": 34.51
},
"oklch": {
"l": 0.57401,
"c": 0.10187,
"h": 113.9
},
"luminance": 0.19394
}Semantic roles & 50–950 ramp
primary
#787F31
secondary
#6760AB
accent
#54D45F
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A