#787F2E#787F2E
#787F2E is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.105 H 113.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #787F2E |
|---|---|
| RGB | rgb(120, 127, 46) |
| HSL | hsl(65, 47%, 34%) |
| HSV | hsv(65, 64%, 50%) |
| CMYK | cmyk(5.5%, 0%, 63.8%, 50.2%) |
| CIE-LAB | lab(51.12, -14.21, 41.84) |
| CIE-LCH | lch(51.12, 44.18, 108.76°) |
| OKLab | oklab(57.37% -0.0423 0.0956) |
| OKLCH | oklch(57.37% 0.105 113.9) |
| XYZ | xyz(15.8286, 19.3694, 5.4891) |
| Luminance | 0.1937 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 4.03
Drab
#828344
ΔE00 4.07
Murky Green
#6C7A0E
ΔE00 4.11
Khaki Green
#728639
ΔE00 4.28
Shit Green
#758000
ΔE00 4.33
Poop Green
#6F7C00
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F2E #352E7F
analogous
#7F5E2E #787F2E #507F2E
triadic
#787F2E #2E787F #7F2E78
tetradic
#787F2E #2E7F5E #352E7F #7F2E50
square
#787F2E #2E7F5E #352E7F #7F2E50
split-complementary
#787F2E #2E507F #5E2E7F
monochromatic
#23250D #4E521E #787F2E #A2AC3E #BDC661
Accessibility & contrast
On white
4.31
#787F2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#787F2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F2E
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F2E | 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)
#887924
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f2e; /* rgb */ color: rgb(120, 127, 46); /* oklch */ color: oklch(57.4% 0.105 113.9);
Tailwind
colors: {
custom: {
50: '#a1a46b',
500: '#787f2e',
950: '#000000',
},
}SCSS
$custom: #787f2e; $custom-light: #a1a46b; $custom-dark: #000000;
JSON
{
"hex": "#787f2e",
"rgb": {
"r": 120,
"g": 127,
"b": 46
},
"hsl": {
"h": 65.185,
"s": 46.821,
"l": 33.922
},
"oklch": {
"l": 0.57369,
"c": 0.10454,
"h": 113.9
},
"luminance": 0.19369
}Semantic roles & 50–950 ramp
primary
#787F2E
secondary
#635CAD
accent
#51D65D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A