#787F2B#787F2B
#787F2B is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.107 H 113.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #787F2B |
|---|---|
| RGB | rgb(120, 127, 43) |
| HSL | hsl(65, 49%, 33%) |
| HSV | hsv(65, 66%, 50%) |
| CMYK | cmyk(5.5%, 0%, 66.1%, 50.2%) |
| CIE-LAB | lab(51.09, -14.43, 43.16) |
| CIE-LCH | lch(51.09, 45.51, 108.48°) |
| OKLab | oklab(57.34% -0.0432 0.0979) |
| OKLCH | oklch(57.34% 0.107 113.8) |
| XYZ | xyz(15.7715, 19.3465, 5.1885) |
| Luminance | 0.1935 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.82
Shit Green
#758000
ΔE00 3.88
Poop Green
#6F7C00
ΔE00 4.00
Olive Drab
#6F7632
ΔE00 4.27
Drab
#828344
ΔE00 4.41
Khaki Green
#728639
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F2B #322B7F
analogous
#7F5C2B #787F2B #4E7F2B
triadic
#787F2B #2B787F #7F2B78
tetradic
#787F2B #2B7F5C #322B7F #7F2B4E
square
#787F2B #2B7F5C #322B7F #7F2B4E
split-complementary
#787F2B #2B4E7F #5C2B7F
monochromatic
#22240C #4D511C #787F2B #A3AD3A #BFC85C
Accessibility & contrast
On white
4.31
#787F2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#787F2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F2B
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F2B | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887920
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f2b; /* rgb */ color: rgb(120, 127, 43); /* oklch */ color: oklch(57.3% 0.107 113.8);
Tailwind
colors: {
custom: {
50: '#a1a469',
500: '#787f2b',
950: '#000000',
},
}SCSS
$custom: #787f2b; $custom-light: #a1a469; $custom-dark: #000000;
JSON
{
"hex": "#787f2b",
"rgb": {
"r": 120,
"g": 127,
"b": 43
},
"hsl": {
"h": 65,
"s": 49.412,
"l": 33.333
},
"oklch": {
"l": 0.57339,
"c": 0.10706,
"h": 113.8
},
"luminance": 0.19346
}Semantic roles & 50–950 ramp
primary
#787F2B
secondary
#5F58AE
accent
#4FD95A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A