#787D15#787D15
#787D15 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.119 H 112.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #787D15 |
|---|---|
| RGB | rgb(120, 125, 21) |
| HSL | hsl(63, 71%, 29%) |
| HSV | hsv(63, 83%, 49%) |
| CMYK | cmyk(4%, 0%, 83.2%, 51%) |
| CIE-LAB | lab(50.35, -14.51, 50.69) |
| CIE-LCH | lch(50.35, 52.72, 105.98°) |
| OKLab | oklab(56.7% -0.0456 0.1099) |
| OKLCH | oklch(56.7% 0.119 112.5) |
| XYZ | xyz(15.2152, 18.7148, 3.5201) |
| Luminance | 0.1871 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.07
Poop Green
#6F7C00
ΔE00 2.43
Olive
#808000
ΔE00 2.83
Murky Green
#6C7A0E
ΔE00 3.07
Olive (survey)
#6E750E
ΔE00 3.33
Swamp Green
#748500
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D15 #1A157D
analogous
#7D4E15 #787D15 #447D15
triadic
#787D15 #15787D #7D1578
tetradic
#787D15 #157D4E #1A157D #7D1544
square
#787D15 #157D4E #1A157D #7D1544
split-complementary
#787D15 #15447D #4E157D
monochromatic
#191A04 #46490C #787D15 #AAB11E #D4DC30
Accessibility & contrast
On white
4.43
#787D15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#787D15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D15
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D15 | 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)
#87791F
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d15; /* rgb */ color: rgb(120, 125, 21); /* oklch */ color: oklch(56.7% 0.119 112.5);
Tailwind
colors: {
custom: {
50: '#a2a25e',
500: '#787d15',
950: '#000000',
},
}SCSS
$custom: #787d15; $custom-light: #a2a25e; $custom-dark: #000000;
JSON
{
"hex": "#787d15",
"rgb": {
"r": 120,
"g": 125,
"b": 21
},
"hsl": {
"h": 62.885,
"s": 71.233,
"l": 28.627
},
"oklch": {
"l": 0.56703,
"c": 0.11895,
"h": 112.5
},
"luminance": 0.18714
}Semantic roles & 50–950 ramp
primary
#787D15
secondary
#413CB2
accent
#3AEE42
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79