#7C8418#7C8418
#7C8418 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.124 H 114.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7C8418 |
|---|---|
| RGB | rgb(124, 132, 24) |
| HSL | hsl(64, 69%, 31%) |
| HSV | hsv(64, 82%, 52%) |
| CMYK | cmyk(6.1%, 0%, 81.8%, 48.2%) |
| CIE-LAB | lab(52.79, -16.30, 52.07) |
| CIE-LCH | lch(52.79, 54.56, 107.38°) |
| OKLab | oklab(58.74% -0.0505 0.1132) |
| OKLCH | oklch(58.74% 0.124 114.1) |
| XYZ | xyz(16.7288, 20.8539, 4.0079) |
| Luminance | 0.2085 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.15
Swamp Green
#748500
ΔE00 2.41
Olive
#808000
ΔE00 2.98
Poop Green
#6F7C00
ΔE00 3.73
Murky Green
#6C7A0E
ΔE00 4.64
Olive Green
#677A04
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C8418 #201884
analogous
#845618 #7C8418 #468418
triadic
#7C8418 #187C84 #84187C
tetradic
#7C8418 #188456 #201884 #841846
square
#7C8418 #188456 #201884 #841846
split-complementary
#7C8418 #184684 #561884
monochromatic
#1B1C05 #4B500F #7C8418 #ADB821 #CFDB3B
Accessibility & contrast
On white
4.06
#7C8418 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#7C8418 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C8418
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C8418 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C8418 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#857C70
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7c8418; /* rgb */ color: rgb(124, 132, 24); /* oklch */ color: oklch(58.7% 0.124 114.1);
Tailwind
colors: {
custom: {
50: '#a5a760',
500: '#7c8418',
950: '#000000',
},
}SCSS
$custom: #7c8418; $custom-light: #a5a760; $custom-dark: #000000;
JSON
{
"hex": "#7c8418",
"rgb": {
"r": 124,
"g": 132,
"b": 24
},
"hsl": {
"h": 64.444,
"s": 69.231,
"l": 30.588
},
"oklch": {
"l": 0.58744,
"c": 0.12398,
"h": 114.1
},
"luminance": 0.20854
}Semantic roles & 50–950 ramp
primary
#7C8418
secondary
#4940B8
accent
#3CEC49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79