#787F1C#787F1C
#787F1C is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.2% C 0.118 H 113.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #787F1C |
|---|---|
| RGB | rgb(120, 127, 28) |
| HSL | hsl(64, 64%, 30%) |
| HSV | hsv(64, 78%, 50%) |
| CMYK | cmyk(5.5%, 0%, 78%, 50.2%) |
| CIE-LAB | lab(50.99, -15.29, 49.03) |
| CIE-LCH | lch(50.99, 51.36, 107.33°) |
| OKLab | oklab(57.22% -0.0472 0.1077) |
| OKLCH | oklch(57.22% 0.118 113.7) |
| XYZ | xyz(15.5452, 19.2560, 3.9963) |
| Luminance | 0.1926 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.07
Poop Green
#6F7C00
ΔE00 2.62
Murky Green
#6C7A0E
ΔE00 3.10
Olive
#808000
ΔE00 3.35
Swamp Green
#748500
ΔE00 3.40
Olive (survey)
#6E750E
ΔE00 3.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F1C #231C7F
analogous
#7F541C #787F1C #477F1C
triadic
#787F1C #1C787F #7F1C78
tetradic
#787F1C #1C7F54 #231C7F #7F1C47
square
#787F1C #1C7F54 #231C7F #7F1C47
split-complementary
#787F1C #1C477F #541C7F
monochromatic
#191B06 #494D11 #787F1C #A7B127 #CAD540
Accessibility & contrast
On white
4.33
#787F1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#787F1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F1C
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F1C | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897904
Deuteranopia (green-blind)
#897A25
Tritanopia (blue-blind)
#80776C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787f1c; /* rgb */ color: rgb(120, 127, 28); /* oklch */ color: oklch(57.2% 0.118 113.7);
Tailwind
colors: {
custom: {
50: '#a2a461',
500: '#787f1c',
950: '#000000',
},
}SCSS
$custom: #787f1c; $custom-light: #a2a461; $custom-dark: #000000;
JSON
{
"hex": "#787f1c",
"rgb": {
"r": 120,
"g": 127,
"b": 28
},
"hsl": {
"h": 64.242,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.57222,
"c": 0.11754,
"h": 113.7
},
"luminance": 0.19256
}Semantic roles & 50–950 ramp
primary
#787F1C
secondary
#4C44B3
accent
#41E74D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A