#7F7E1F#7F7E1F
#7F7E1F is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.113 H 108.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #7F7E1F |
|---|---|
| RGB | rgb(127, 126, 31) |
| HSL | hsl(59, 61%, 31%) |
| HSV | hsv(59, 76%, 50%) |
| CMYK | cmyk(0%, 0.8%, 75.6%, 50.2%) |
| CIE-LAB | lab(51.31, -11.40, 48.47) |
| CIE-LCH | lch(51.31, 49.80, 103.24°) |
| OKLab | oklab(57.63% -0.0365 0.1068) |
| OKLCH | oklch(57.63% 0.113 108.9) |
| XYZ | xyz(16.4612, 19.5332, 4.1992) |
| Luminance | 0.1953 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.50
Shit Green
#758000
ΔE00 3.70
Poop Green
#6F7C00
ΔE00 4.44
Olive (survey)
#6E750E
ΔE00 4.74
Murky Green
#6C7A0E
ΔE00 4.97
Swamp Green
#748500
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F7E1F #1F207F
analogous
#7F4E1F #7F7E1F #507F1F
triadic
#7F7E1F #1F7F7E #7E1F7F
tetradic
#7F7E1F #1F7F4E #1F207F #7F1F50
square
#7F7E1F #1F7F4E #1F207F #7F1F50
split-complementary
#7F7E1F #1F507F #4E1F7F
monochromatic
#1D1C07 #4E4D13 #7F7E1F #B0AF2B #D2D046
Accessibility & contrast
On white
4.28
#7F7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.91
#7F7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F7E1F
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F7E1F | 1.00 | 4.28 | 4.91 | 4.91 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8A7C26
Tritanopia (blue-blind)
#88766C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #7f7e1f; /* rgb */ color: rgb(127, 126, 31); /* oklch */ color: oklch(57.6% 0.113 108.9);
Tailwind
colors: {
custom: {
50: '#a7a362',
500: '#7f7e1f',
950: '#000000',
},
}SCSS
$custom: #7f7e1f; $custom-light: #a7a362; $custom-dark: #000000;
JSON
{
"hex": "#7f7e1f",
"rgb": {
"r": 127,
"g": 126,
"b": 31
},
"hsl": {
"h": 59.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.5763,
"c": 0.11285,
"h": 108.9
},
"luminance": 0.19533
}Semantic roles & 50–950 ramp
primary
#7F7E1F
secondary
#4849B2
accent
#46E444
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A