#787F27#787F27
#787F27 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.110 H 113.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #787F27 |
|---|---|
| RGB | rgb(120, 127, 39) |
| HSL | hsl(65, 53%, 33%) |
| HSV | hsv(65, 69%, 50%) |
| CMYK | cmyk(5.5%, 0%, 69.3%, 50.2%) |
| CIE-LAB | lab(51.06, -14.69, 44.86) |
| CIE-LCH | lch(51.06, 47.21, 108.13°) |
| OKLab | oklab(57.3% -0.0444 0.1009) |
| OKLCH | oklch(57.3% 0.11 113.8) |
| XYZ | xyz(15.7017, 19.3186, 4.8208) |
| Luminance | 0.1932 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.33
Murky Green
#6C7A0E
ΔE00 3.50
Poop Green
#6F7C00
ΔE00 3.53
Olive (survey)
#6E750E
ΔE00 4.26
Swamp Green
#748500
ΔE00 4.26
Olive
#808000
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F27 #2E277F
analogous
#7F5A27 #787F27 #4C7F27
triadic
#787F27 #27787F #7F2778
tetradic
#787F27 #277F5A #2E277F #7F274C
square
#787F27 #277F5A #2E277F #7F274C
split-complementary
#787F27 #274C7F #5A277F
monochromatic
#20210A #4C5019 #787F27 #A4AE35 #C2CB55
Accessibility & contrast
On white
4.32
#787F27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#787F27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F27
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F27 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88791A
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f27; /* rgb */ color: rgb(120, 127, 39); /* oklch */ color: oklch(57.3% 0.110 113.8);
Tailwind
colors: {
custom: {
50: '#a2a467',
500: '#787f27',
950: '#000000',
},
}SCSS
$custom: #787f27; $custom-light: #a2a467; $custom-dark: #000000;
JSON
{
"hex": "#787f27",
"rgb": {
"r": 120,
"g": 127,
"b": 39
},
"hsl": {
"h": 64.773,
"s": 53.012,
"l": 32.549
},
"oklch": {
"l": 0.57303,
"c": 0.11022,
"h": 113.8
},
"luminance": 0.19318
}Semantic roles & 50–950 ramp
primary
#787F27
secondary
#5A52B0
accent
#4BDC57
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A