#787D17#787D17
#787D17 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.118 H 112.6°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #787D17 |
|---|---|
| RGB | rgb(120, 125, 23) |
| HSL | hsl(63, 69%, 29%) |
| HSV | hsv(63, 82%, 49%) |
| CMYK | cmyk(4%, 0%, 81.6%, 51%) |
| CIE-LAB | lab(50.36, -14.44, 50.10) |
| CIE-LCH | lch(50.36, 52.13, 106.08°) |
| OKLab | oklab(56.71% -0.0452 0.109) |
| OKLCH | oklch(56.71% 0.118 112.6) |
| XYZ | xyz(15.2345, 18.7225, 3.6217) |
| Luminance | 0.1872 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.18
Poop Green
#6F7C00
ΔE00 2.49
Olive
#808000
ΔE00 2.96
Murky Green
#6C7A0E
ΔE00 3.05
Olive (survey)
#6E750E
ΔE00 3.32
Swamp Green
#748500
ΔE00 3.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D17 #1C177D
analogous
#7D4F17 #787D17 #457D17
triadic
#787D17 #17787D #7D1778
tetradic
#787D17 #177D4F #1C177D #7D1745
square
#787D17 #177D4F #1C177D #7D1745
split-complementary
#787D17 #17457D #4F177D
monochromatic
#191A05 #46490D #787D17 #AAB121 #D2DA35
Accessibility & contrast
On white
4.43
#787D17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#787D17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D17
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D17 | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d17; /* rgb */ color: rgb(120, 125, 23); /* oklch */ color: oklch(56.7% 0.118 112.6);
Tailwind
colors: {
custom: {
50: '#a2a25f',
500: '#787d17',
950: '#000000',
},
}SCSS
$custom: #787d17; $custom-light: #a2a25f; $custom-dark: #000000;
JSON
{
"hex": "#787d17",
"rgb": {
"r": 120,
"g": 125,
"b": 23
},
"hsl": {
"h": 62.941,
"s": 68.919,
"l": 29.02
},
"oklch": {
"l": 0.56713,
"c": 0.11799,
"h": 112.6
},
"luminance": 0.18722
}Semantic roles & 50–950 ramp
primary
#787D17
secondary
#443EB2
accent
#3CEC45
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79