#7D7D21#7D7D21
#7D7D21 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.111 H 109.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7D7D21 |
|---|---|
| RGB | rgb(125, 125, 33) |
| HSL | hsl(60, 58%, 31%) |
| HSV | hsv(60, 74%, 49%) |
| CMYK | cmyk(0%, 0%, 73.6%, 51%) |
| CIE-LAB | lab(50.85, -11.68, 47.22) |
| CIE-LCH | lch(50.85, 48.64, 103.89°) |
| OKLab | oklab(57.23% -0.0369 0.1046) |
| OKLCH | oklch(57.23% 0.111 109.4) |
| XYZ | xyz(16.0661, 19.1375, 4.2861) |
| Luminance | 0.1914 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.03
Shit Green
#758000
ΔE00 3.67
Poop Green
#6F7C00
ΔE00 4.15
Olive (survey)
#6E750E
ΔE00 4.23
Murky Green
#6C7A0E
ΔE00 4.51
Swamp Green
#748500
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D7D21 #21217D
analogous
#7D4F21 #7D7D21 #4F7D21
triadic
#7D7D21 #217D7D #7D217D
tetradic
#7D7D21 #217D4F #21217D #7D214F
square
#7D7D21 #217D4F #21217D #7D214F
split-complementary
#7D7D21 #214F7D #4F217D
monochromatic
#1C1C07 #4D4D14 #7D7D21 #ADAD2E #CFCF49
Accessibility & contrast
On white
4.35
#7D7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.83
#7D7D21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7D7D21
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D7D21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7D7D21 | 1.00 | 4.35 | 4.83 | 4.83 |
| #FFFFFF | 4.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877810
Deuteranopia (green-blind)
#897A28
Tritanopia (blue-blind)
#86756B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7d7d21; /* rgb */ color: rgb(125, 125, 33); /* oklch */ color: oklch(57.2% 0.111 109.4);
Tailwind
colors: {
custom: {
50: '#a6a263',
500: '#7d7d21',
950: '#000000',
},
}SCSS
$custom: #7d7d21; $custom-light: #a6a263; $custom-dark: #000000;
JSON
{
"hex": "#7d7d21",
"rgb": {
"r": 125,
"g": 125,
"b": 33
},
"hsl": {
"h": 60,
"s": 58.228,
"l": 30.98
},
"oklch": {
"l": 0.57226,
"c": 0.11093,
"h": 109.4
},
"luminance": 0.19137
}Semantic roles & 50–950 ramp
primary
#7D7D21
secondary
#4A4AB0
accent
#46E146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A