#7F7D1F#7F7D1F
#7F7D1F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.112 H 108.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #7F7D1F |
|---|---|
| RGB | rgb(127, 125, 31) |
| HSL | hsl(59, 61%, 31%) |
| HSV | hsv(59, 76%, 50%) |
| CMYK | cmyk(0%, 1.6%, 75.6%, 50.2%) |
| CIE-LAB | lab(51.01, -10.86, 48.19) |
| CIE-LCH | lch(51.01, 49.40, 102.70°) |
| OKLab | oklab(57.4% -0.0349 0.1062) |
| OKLCH | oklch(57.4% 0.112 108.2) |
| XYZ | xyz(16.3340, 19.2787, 4.1568) |
| Luminance | 0.1928 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.69
Shit Green
#758000
ΔE00 3.99
Poop Green
#6F7C00
ΔE00 4.60
Olive (survey)
#6E750E
ΔE00 4.63
Murky Green
#6C7A0E
ΔE00 5.08
Ugly Brown
#7D7103
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F7D1F #1F217F
analogous
#7F4D1F #7F7D1F #517F1F
triadic
#7F7D1F #1F7F7D #7D1F7F
tetradic
#7F7D1F #1F7F4D #1F217F #7F1F51
square
#7F7D1F #1F7F4D #1F217F #7F1F51
split-complementary
#7F7D1F #1F517F #4D1F7F
monochromatic
#1D1C07 #4E4D13 #7F7D1F #B0AD2B #D2CF46
Accessibility & contrast
On white
4.32
#7F7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#7F7D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F7D1F
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F7D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F7D1F | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7f7d1f; /* rgb */ color: rgb(127, 125, 31); /* oklch */ color: oklch(57.4% 0.112 108.2);
Tailwind
colors: {
custom: {
50: '#a7a262',
500: '#7f7d1f',
950: '#000000',
},
}SCSS
$custom: #7f7d1f; $custom-light: #a7a262; $custom-dark: #000000;
JSON
{
"hex": "#7f7d1f",
"rgb": {
"r": 127,
"g": 125,
"b": 31
},
"hsl": {
"h": 58.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.57396,
"c": 0.1118,
"h": 108.2
},
"luminance": 0.19278
}Semantic roles & 50–950 ramp
primary
#7F7D1F
secondary
#484AB2
accent
#47E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A