#787F18#787F18
#787F18 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.120 H 113.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #787F18 |
|---|---|
| RGB | rgb(120, 127, 24) |
| HSL | hsl(64, 68%, 30%) |
| HSV | hsv(64, 81%, 50%) |
| CMYK | cmyk(5.5%, 0%, 81.1%, 50.2%) |
| CIE-LAB | lab(50.96, -15.47, 50.32) |
| CIE-LCH | lch(50.96, 52.65, 107.08°) |
| OKLab | oklab(57.2% -0.048 0.1097) |
| OKLCH | oklch(57.2% 0.12 113.7) |
| XYZ | xyz(15.5005, 19.2381, 3.7608) |
| Luminance | 0.1924 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.73
Poop Green
#6F7C00
ΔE00 2.43
Olive
#808000
ΔE00 3.05
Murky Green
#6C7A0E
ΔE00 3.10
Swamp Green
#748500
ΔE00 3.22
Olive (survey)
#6E750E
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F18 #1F187F
analogous
#7F5318 #787F18 #447F18
triadic
#787F18 #18787F #7F1878
tetradic
#787F18 #187F53 #1F187F #7F1844
square
#787F18 #187F53 #1F187F #7F1844
split-complementary
#787F18 #18447F #53187F
monochromatic
#181A05 #474C0E #787F18 #A9B222 #CED938
Accessibility & contrast
On white
4.33
#787F18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#787F18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F18
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F18 | 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)
#897800
Deuteranopia (green-blind)
#897A22
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787f18; /* rgb */ color: rgb(120, 127, 24); /* oklch */ color: oklch(57.2% 0.120 113.7);
Tailwind
colors: {
custom: {
50: '#a2a35f',
500: '#787f18',
950: '#000000',
},
}SCSS
$custom: #787f18; $custom-light: #a2a35f; $custom-dark: #000000;
JSON
{
"hex": "#787f18",
"rgb": {
"r": 120,
"g": 127,
"b": 24
},
"hsl": {
"h": 64.078,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.57199,
"c": 0.1197,
"h": 113.7
},
"luminance": 0.19238
}Semantic roles & 50–950 ramp
primary
#787F18
secondary
#473FB3
accent
#3DEB49
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79