#787E1F#787E1F
#787E1F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.115 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #787E1F |
|---|---|
| RGB | rgb(120, 126, 31) |
| HSL | hsl(64, 61%, 31%) |
| HSV | hsv(64, 75%, 49%) |
| CMYK | cmyk(4.8%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(50.70, -14.61, 47.69) |
| CIE-LCH | lch(50.70, 49.88, 107.04°) |
| OKLab | oklab(57% -0.045 0.1054) |
| OKLCH | oklch(57% 0.115 113.1) |
| XYZ | xyz(15.4544, 19.0140, 4.1520) |
| Luminance | 0.1901 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.55
Poop Green
#6F7C00
ΔE00 2.83
Murky Green
#6C7A0E
ΔE00 3.10
Olive
#808000
ΔE00 3.59
Olive (survey)
#6E750E
ΔE00 3.66
Swamp Green
#748500
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E1F #251F7E
analogous
#7E541F #787E1F #487E1F
triadic
#787E1F #1F787E #7E1F78
tetradic
#787E1F #1F7E54 #251F7E #7E1F48
square
#787E1F #1F7E54 #251F7E #7E1F48
split-complementary
#787E1F #1F487E #541F7E
monochromatic
#1A1C07 #494D13 #787E1F #A7AF2B #C9D146
Accessibility & contrast
On white
4.37
#787E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.80
#787E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E1F
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E1F | 1.00 | 4.37 | 4.80 | 4.80 |
| #FFFFFF | 4.37 | 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)
#88780C
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e1f; /* rgb */ color: rgb(120, 126, 31); /* oklch */ color: oklch(57.0% 0.115 113.1);
Tailwind
colors: {
custom: {
50: '#a2a362',
500: '#787e1f',
950: '#000000',
},
}SCSS
$custom: #787e1f; $custom-light: #a2a362; $custom-dark: #000000;
JSON
{
"hex": "#787e1f",
"rgb": {
"r": 120,
"g": 126,
"b": 31
},
"hsl": {
"h": 63.789,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.57002,
"c": 0.1146,
"h": 113.1
},
"luminance": 0.19014
}Semantic roles & 50–950 ramp
primary
#787E1F
secondary
#4E48B1
accent
#44E44E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A