#787C1C#787C1C
#787C1C is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.114 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #787C1C |
|---|---|
| RGB | rgb(120, 124, 28) |
| HSL | hsl(63, 63%, 30%) |
| HSV | hsv(63, 77%, 49%) |
| CMYK | cmyk(3.2%, 0%, 77.4%, 51.4%) |
| CIE-LAB | lab(50.09, -13.68, 48.19) |
| CIE-LCH | lch(50.09, 50.10, 105.85°) |
| OKLab | oklab(56.5% -0.0427 0.1059) |
| OKLCH | oklch(56.5% 0.114 112) |
| XYZ | xyz(15.1635, 18.4926, 3.8690) |
| Luminance | 0.1849 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.83
Poop Green
#6F7C00
ΔE00 2.87
Olive (survey)
#6E750E
ΔE00 3.10
Murky Green
#6C7A0E
ΔE00 3.13
Olive
#808000
ΔE00 3.41
Olive Green
#677A04
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C1C #201C7C
analogous
#7C501C #787C1C #487C1C
triadic
#787C1C #1C787C #7C1C78
tetradic
#787C1C #1C7C50 #201C7C #7C1C48
square
#787C1C #1C7C50 #201C7C #7C1C48
split-complementary
#787C1C #1C487C #501C7C
monochromatic
#181906 #484A11 #787C1C #A8AE27 #CDD43F
Accessibility & contrast
On white
4.47
#787C1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#787C1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C1C
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C1C | 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)
#867606
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c1c; /* rgb */ color: rgb(120, 124, 28); /* oklch */ color: oklch(56.5% 0.114 112.0);
Tailwind
colors: {
custom: {
50: '#a2a161',
500: '#787c1c',
950: '#000000',
},
}SCSS
$custom: #787c1c; $custom-light: #a2a161; $custom-dark: #000000;
JSON
{
"hex": "#787c1c",
"rgb": {
"r": 120,
"g": 124,
"b": 28
},
"hsl": {
"h": 62.5,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.56503,
"c": 0.11417,
"h": 112
},
"luminance": 0.18492
}Semantic roles & 50–950 ramp
primary
#787C1C
secondary
#4844B0
accent
#42E648
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79