#787E1B#787E1B
#787E1B is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.117 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #787E1B |
|---|---|
| RGB | rgb(120, 126, 27) |
| HSL | hsl(64, 65%, 30%) |
| HSV | hsv(64, 79%, 49%) |
| CMYK | cmyk(4.8%, 0%, 78.6%, 50.6%) |
| CIE-LAB | lab(50.68, -14.80, 49.09) |
| CIE-LCH | lch(50.68, 51.27, 106.78°) |
| OKLab | oklab(56.98% -0.0459 0.1076) |
| OKLCH | oklch(56.98% 0.117 113.1) |
| XYZ | xyz(15.4049, 18.9943, 3.8915) |
| Luminance | 0.1899 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.18
Poop Green
#6F7C00
ΔE00 2.58
Murky Green
#6C7A0E
ΔE00 3.04
Olive
#808000
ΔE00 3.24
Olive (survey)
#6E750E
ΔE00 3.60
Swamp Green
#748500
ΔE00 3.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E1B #211B7E
analogous
#7E521B #787E1B #477E1B
triadic
#787E1B #1B787E #7E1B78
tetradic
#787E1B #1B7E52 #211B7E #7E1B47
square
#787E1B #1B7E52 #211B7E #7E1B47
split-complementary
#787E1B #1B477E #521B7E
monochromatic
#181905 #484C10 #787E1B #A8B026 #CCD63E
Accessibility & contrast
On white
4.38
#787E1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.80
#787E1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E1B
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E1B | 1.00 | 4.38 | 4.80 | 4.80 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887803
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e1b; /* rgb */ color: rgb(120, 126, 27); /* oklch */ color: oklch(57.0% 0.117 113.1);
Tailwind
colors: {
custom: {
50: '#a2a360',
500: '#787e1b',
950: '#000000',
},
}SCSS
$custom: #787e1b; $custom-light: #a2a360; $custom-dark: #000000;
JSON
{
"hex": "#787e1b",
"rgb": {
"r": 120,
"g": 126,
"b": 27
},
"hsl": {
"h": 63.636,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.56976,
"c": 0.11698,
"h": 113.1
},
"luminance": 0.18994
}Semantic roles & 50–950 ramp
primary
#787E1B
secondary
#4A43B2
accent
#40E84A
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79