#787D27#787D27
#787D27 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.108 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #787D27 |
|---|---|
| RGB | rgb(120, 125, 39) |
| HSL | hsl(63, 52%, 32%) |
| HSV | hsv(63, 69%, 49%) |
| CMYK | cmyk(4%, 0%, 68.8%, 51%) |
| CIE-LAB | lab(50.46, -13.62, 44.25) |
| CIE-LCH | lch(50.46, 46.30, 107.10°) |
| OKLab | oklab(56.83% -0.0414 0.0996) |
| OKLCH | oklch(56.83% 0.108 112.6) |
| XYZ | xyz(15.4460, 18.8071, 4.7355) |
| Luminance | 0.1881 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.51
Poop Green
#6F7C00
ΔE00 3.66
Shit Green
#758000
ΔE00 3.68
Olive (survey)
#6E750E
ΔE00 3.77
Olive Drab
#6F7632
ΔE00 4.14
Olive
#808000
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D27 #2C277D
analogous
#7D5727 #787D27 #4D7D27
triadic
#787D27 #27787D #7D2778
tetradic
#787D27 #277D57 #2C277D #7D274D
square
#787D27 #277D57 #2C277D #7D274D
split-complementary
#787D27 #274D7D #57277D
monochromatic
#1E200A #4B4E18 #787D27 #A5AC36 #C3CA55
Accessibility & contrast
On white
4.41
#787D27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#787D27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D27
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D27 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86771B
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d27; /* rgb */ color: rgb(120, 125, 39); /* oklch */ color: oklch(56.8% 0.108 112.6);
Tailwind
colors: {
custom: {
50: '#a2a266',
500: '#787d27',
950: '#000000',
},
}SCSS
$custom: #787d27; $custom-light: #a2a266; $custom-dark: #000000;
JSON
{
"hex": "#787d27",
"rgb": {
"r": 120,
"g": 125,
"b": 39
},
"hsl": {
"h": 63.488,
"s": 52.439,
"l": 32.157
},
"oklch": {
"l": 0.56825,
"c": 0.10786,
"h": 112.6
},
"luminance": 0.18807
}Semantic roles & 50–950 ramp
primary
#787D27
secondary
#5751AF
accent
#4CDC54
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A