#7F831F#7F831F
#7F831F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.8% C 0.118 H 111.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #7F831F |
|---|---|
| RGB | rgb(127, 131, 31) |
| HSL | hsl(62, 62%, 32%) |
| HSV | hsv(62, 76%, 51%) |
| CMYK | cmyk(3.1%, 0%, 76.3%, 48.6%) |
| CIE-LAB | lab(52.78, -14.10, 49.86) |
| CIE-LCH | lch(52.78, 51.82, 105.79°) |
| OKLab | oklab(58.81% -0.044 0.1097) |
| OKLCH | oklch(58.81% 0.118 111.9) |
| XYZ | xyz(17.1166, 20.8440, 4.4177) |
| Luminance | 0.2084 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.65
Shit Green
#758000
ΔE00 2.90
Swamp Green
#748500
ΔE00 3.60
Poop Green
#6F7C00
ΔE00 4.27
Murky Green
#6C7A0E
ΔE00 5.03
Drab
#828344
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F831F #231F83
analogous
#83551F #7F831F #4D831F
triadic
#7F831F #1F7F83 #831F7F
tetradic
#7F831F #1F8355 #231F83 #831F4D
square
#7F831F #1F8355 #231F83 #831F4D
split-complementary
#7F831F #1F4D83 #551F83
monochromatic
#1F2008 #4F5213 #7F831F #AFB42B #CED449
Accessibility & contrast
On white
4.06
#7F831F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#7F831F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F831F
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F831F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F831F | 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)
#8D7D09
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#887B70
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7f831f; /* rgb */ color: rgb(127, 131, 31); /* oklch */ color: oklch(58.8% 0.118 111.9);
Tailwind
colors: {
custom: {
50: '#a7a663',
500: '#7f831f',
950: '#000000',
},
}SCSS
$custom: #7f831f; $custom-light: #a7a663; $custom-dark: #000000;
JSON
{
"hex": "#7f831f",
"rgb": {
"r": 127,
"g": 131,
"b": 31
},
"hsl": {
"h": 62.4,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.58808,
"c": 0.11822,
"h": 111.9
},
"luminance": 0.20844
}Semantic roles & 50–950 ramp
primary
#7F831F
secondary
#4C48B6
accent
#43E549
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A