#787C1B#787C1B
#787C1B is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.115 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #787C1B |
|---|---|
| RGB | rgb(120, 124, 27) |
| HSL | hsl(62, 64%, 30%) |
| HSV | hsv(62, 78%, 49%) |
| CMYK | cmyk(3.2%, 0%, 78.2%, 51.4%) |
| CIE-LAB | lab(50.08, -13.73, 48.54) |
| CIE-LCH | lch(50.08, 50.44, 105.79°) |
| OKLab | oklab(56.5% -0.0429 0.1064) |
| OKLCH | oklch(56.5% 0.115 112) |
| XYZ | xyz(15.1517, 18.4879, 3.8071) |
| Luminance | 0.1849 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.76
Poop Green
#6F7C00
ΔE00 2.82
Olive (survey)
#6E750E
ΔE00 3.09
Murky Green
#6C7A0E
ΔE00 3.12
Olive
#808000
ΔE00 3.32
Olive Green
#677A04
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C1B #1F1B7C
analogous
#7C501B #787C1B #487C1B
triadic
#787C1B #1B787C #7C1B78
tetradic
#787C1B #1B7C50 #1F1B7C #7C1B48
square
#787C1B #1B7C50 #1F1B7C #7C1B48
split-complementary
#787C1B #1B487C #501B7C
monochromatic
#181905 #474A10 #787C1B #A9AE26 #CED53D
Accessibility & contrast
On white
4.47
#787C1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#787C1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C1B
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C1B | 1.00 | 4.47 | 4.70 | 4.70 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867604
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c1b; /* rgb */ color: rgb(120, 124, 27); /* oklch */ color: oklch(56.5% 0.115 112.0);
Tailwind
colors: {
custom: {
50: '#a2a160',
500: '#787c1b',
950: '#000000',
},
}SCSS
$custom: #787c1b; $custom-light: #a2a160; $custom-dark: #000000;
JSON
{
"hex": "#787c1b",
"rgb": {
"r": 120,
"g": 124,
"b": 27
},
"hsl": {
"h": 62.474,
"s": 64.238,
"l": 29.608
},
"oklch": {
"l": 0.56497,
"c": 0.11476,
"h": 112
},
"luminance": 0.18488
}Semantic roles & 50–950 ramp
primary
#787C1B
secondary
#4743B0
accent
#41E747
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79