#787B1C#787B1C
#787B1C is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.113 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #787B1C |
|---|---|
| RGB | rgb(120, 123, 28) |
| HSL | hsl(62, 63%, 30%) |
| HSV | hsv(62, 77%, 48%) |
| CMYK | cmyk(2.4%, 0%, 77.2%, 51.8%) |
| CIE-LAB | lab(49.79, -13.14, 47.91) |
| CIE-LCH | lch(49.79, 49.68, 105.34°) |
| OKLab | oklab(56.27% -0.0412 0.1053) |
| OKLCH | oklch(56.27% 0.113 111.4) |
| XYZ | xyz(15.0388, 18.2432, 3.8275) |
| Luminance | 0.1824 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 2.91
Poop Green
#6F7C00
ΔE00 3.08
Shit Green
#758000
ΔE00 3.16
Murky Green
#6C7A0E
ΔE00 3.26
Olive
#808000
ΔE00 3.53
Olive Green
#677A04
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787B1C #1F1C7B
analogous
#7B4F1C #787B1C #487B1C
triadic
#787B1C #1C787B #7B1C78
tetradic
#787B1C #1C7B4F #1F1C7B #7B1C48
square
#787B1C #1C7B4F #1F1C7B #7B1C48
split-complementary
#787B1C #1C487B #4F1C7B
monochromatic
#181906 #474911 #787B1C #A9AD27 #CED33E
Accessibility & contrast
On white
4.52
#787B1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#787B1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787B1C
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787B1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787B1C | 1.00 | 4.52 | 4.65 | 4.65 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857506
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #787b1c; /* rgb */ color: rgb(120, 123, 28); /* oklch */ color: oklch(56.3% 0.113 111.4);
Tailwind
colors: {
custom: {
50: '#a2a160',
500: '#787b1c',
950: '#000000',
},
}SCSS
$custom: #787b1c; $custom-light: #a2a160; $custom-dark: #000000;
JSON
{
"hex": "#787b1c",
"rgb": {
"r": 120,
"g": 123,
"b": 28
},
"hsl": {
"h": 61.895,
"s": 62.914,
"l": 29.608
},
"oklch": {
"l": 0.56265,
"c": 0.11307,
"h": 111.4
},
"luminance": 0.18243
}Semantic roles & 50–950 ramp
primary
#787B1C
secondary
#4744AF
accent
#42E647
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79