#787D18#787D18
#787D18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.117 H 112.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #787D18 |
|---|---|
| RGB | rgb(120, 125, 24) |
| HSL | hsl(63, 68%, 29%) |
| HSV | hsv(63, 81%, 49%) |
| CMYK | cmyk(4%, 0%, 80.8%, 51%) |
| CIE-LAB | lab(50.37, -14.40, 49.79) |
| CIE-LCH | lch(50.37, 51.83, 106.13°) |
| OKLab | oklab(56.72% -0.045 0.1085) |
| OKLCH | oklch(56.72% 0.117 112.5) |
| XYZ | xyz(15.2447, 18.7266, 3.6755) |
| Luminance | 0.1873 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.24
Poop Green
#6F7C00
ΔE00 2.53
Olive
#808000
ΔE00 3.03
Murky Green
#6C7A0E
ΔE00 3.04
Olive (survey)
#6E750E
ΔE00 3.31
Swamp Green
#748500
ΔE00 3.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D18 #1D187D
analogous
#7D5018 #787D18 #467D18
triadic
#787D18 #18787D #7D1878
tetradic
#787D18 #187D50 #1D187D #7D1846
square
#787D18 #187D50 #1D187D #7D1846
split-complementary
#787D18 #18467D #50187D
monochromatic
#191A05 #474A0E #787D18 #A9B022 #D1D937
Accessibility & contrast
On white
4.43
#787D18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#787D18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D18
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D18 | 1.00 | 4.43 | 4.75 | 4.75 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 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: #787d18; /* rgb */ color: rgb(120, 125, 24); /* oklch */ color: oklch(56.7% 0.117 112.5);
Tailwind
colors: {
custom: {
50: '#a2a25f',
500: '#787d18',
950: '#000000',
},
}SCSS
$custom: #787d18; $custom-light: #a2a25f; $custom-dark: #000000;
JSON
{
"hex": "#787d18",
"rgb": {
"r": 120,
"g": 125,
"b": 24
},
"hsl": {
"h": 62.97,
"s": 67.785,
"l": 29.216
},
"oklch": {
"l": 0.56719,
"c": 0.11748,
"h": 112.5
},
"luminance": 0.18726
}Semantic roles & 50–950 ramp
primary
#787D18
secondary
#453FB2
accent
#3DEB46
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79