#787F2C#787F2C
#787F2C is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.3% C 0.106 H 113.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #787F2C |
|---|---|
| RGB | rgb(120, 127, 44) |
| HSL | hsl(65, 49%, 34%) |
| HSV | hsv(65, 65%, 50%) |
| CMYK | cmyk(5.5%, 0%, 65.4%, 50.2%) |
| CIE-LAB | lab(51.10, -14.35, 42.73) |
| CIE-LCH | lch(51.10, 45.07, 108.57°) |
| OKLab | oklab(57.35% -0.0429 0.0972) |
| OKLCH | oklch(57.35% 0.106 113.8) |
| XYZ | xyz(15.7901, 19.3540, 5.2863) |
| Luminance | 0.1935 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.91
Shit Green
#758000
ΔE00 4.03
Poop Green
#6F7C00
ΔE00 4.13
Olive Drab
#6F7632
ΔE00 4.19
Drab
#828344
ΔE00 4.30
Khaki Green
#728639
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F2C #332C7F
analogous
#7F5C2C #787F2C #4E7F2C
triadic
#787F2C #2C787F #7F2C78
tetradic
#787F2C #2C7F5C #332C7F #7F2C4E
square
#787F2C #2C7F5C #332C7F #7F2C4E
split-complementary
#787F2C #2C4E7F #5C2C7F
monochromatic
#22240D #4D521C #787F2C #A3AC3C #BEC75E
Accessibility & contrast
On white
4.31
#787F2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#787F2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F2C
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F2C | 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)
#887921
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f2c; /* rgb */ color: rgb(120, 127, 44); /* oklch */ color: oklch(57.3% 0.106 113.8);
Tailwind
colors: {
custom: {
50: '#a1a46a',
500: '#787f2c',
950: '#000000',
},
}SCSS
$custom: #787f2c; $custom-light: #a1a46a; $custom-dark: #000000;
JSON
{
"hex": "#787f2c",
"rgb": {
"r": 120,
"g": 127,
"b": 44
},
"hsl": {
"h": 65.06,
"s": 48.538,
"l": 33.529
},
"oklch": {
"l": 0.57349,
"c": 0.10624,
"h": 113.8
},
"luminance": 0.19354
}Semantic roles & 50–950 ramp
primary
#787F2C
secondary
#6059AD
accent
#50D85B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A