#788018#788018
#788018 is a mid, vivid yellow. Relative luminance 0.195; OKLCH L 57.4% C 0.121 H 114.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #788018 |
|---|---|
| RGB | rgb(120, 128, 24) |
| HSL | hsl(65, 68%, 30%) |
| HSV | hsv(65, 81%, 50%) |
| CMYK | cmyk(6.3%, 0%, 81.3%, 49.8%) |
| CIE-LAB | lab(51.26, -16.00, 50.59) |
| CIE-LCH | lch(51.26, 53.06, 107.55°) |
| OKLab | oklab(57.44% -0.0495 0.1102) |
| OKLCH | oklch(57.44% 0.121 114.2) |
| XYZ | xyz(15.6303, 19.4977, 3.8040) |
| Luminance | 0.1950 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.58
Poop Green
#6F7C00
ΔE00 2.49
Swamp Green
#748500
ΔE00 2.85
Olive
#808000
ΔE00 3.15
Murky Green
#6C7A0E
ΔE00 3.21
Olive Green
#677A04
ΔE00 4.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#788018 #201880
analogous
#805418 #788018 #448018
triadic
#788018 #187880 #801878
tetradic
#788018 #188054 #201880 #801844
square
#788018 #188054 #201880 #801844
split-complementary
#788018 #184480 #541880
monochromatic
#181A05 #484C0E #788018 #A8B422 #CDDA39
Accessibility & contrast
On white
4.29
#788018 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#788018 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #788018
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##788018 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##788018 | 1.00 | 4.29 | 4.90 | 4.90 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#80786D
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #788018; /* rgb */ color: rgb(120, 128, 24); /* oklch */ color: oklch(57.4% 0.121 114.2);
Tailwind
colors: {
custom: {
50: '#a2a45f',
500: '#788018',
950: '#000000',
},
}SCSS
$custom: #788018; $custom-light: #a2a45f; $custom-dark: #000000;
JSON
{
"hex": "#788018",
"rgb": {
"r": 120,
"g": 128,
"b": 24
},
"hsl": {
"h": 64.615,
"s": 68.421,
"l": 29.804
},
"oklch": {
"l": 0.57439,
"c": 0.12082,
"h": 114.2
},
"luminance": 0.19497
}Semantic roles & 50–950 ramp
primary
#788018
secondary
#4840B4
accent
#3DEB4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#0F0F05
muted
#7F7F79