#787F2F#787F2F
#787F2F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.104 H 113.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #787F2F |
|---|---|
| RGB | rgb(120, 127, 47) |
| HSL | hsl(65, 46%, 34%) |
| HSV | hsv(65, 63%, 50%) |
| CMYK | cmyk(5.5%, 0%, 63%, 50.2%) |
| CIE-LAB | lab(51.13, -14.13, 41.38) |
| CIE-LCH | lch(51.13, 43.73, 108.85°) |
| OKLab | oklab(57.38% -0.042 0.0948) |
| OKLCH | oklch(57.38% 0.104 113.9) |
| XYZ | xyz(15.8486, 19.3773, 5.5941) |
| Luminance | 0.1938 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.96
Drab
#828344
ΔE00 3.96
Khaki Green
#728639
ΔE00 4.21
Murky Green
#6C7A0E
ΔE00 4.22
Shit Green
#758000
ΔE00 4.48
Poop Green
#6F7C00
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F2F #362F7F
analogous
#7F5E2F #787F2F #507F2F
triadic
#787F2F #2F787F #7F2F78
tetradic
#787F2F #2F7F5E #362F7F #7F2F50
square
#787F2F #2F7F5E #362F7F #7F2F50
split-complementary
#787F2F #2F507F #5E2F7F
monochromatic
#24260E #4E521E #787F2F #A2AC40 #BDC563
Accessibility & contrast
On white
4.31
#787F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#787F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F2F
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F2F | 1.00 | 4.31 | 4.88 | 4.88 |
| #FFFFFF | 4.31 | 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)
#887926
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f2f; /* rgb */ color: rgb(120, 127, 47); /* oklch */ color: oklch(57.4% 0.104 113.9);
Tailwind
colors: {
custom: {
50: '#a1a46b',
500: '#787f2f',
950: '#000000',
},
}SCSS
$custom: #787f2f; $custom-light: #a1a46b; $custom-dark: #000000;
JSON
{
"hex": "#787f2f",
"rgb": {
"r": 120,
"g": 127,
"b": 47
},
"hsl": {
"h": 65.25,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.57379,
"c": 0.10366,
"h": 113.9
},
"luminance": 0.19377
}Semantic roles & 50–950 ramp
primary
#787F2F
secondary
#645EAC
accent
#52D65E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A