#7F7A1F#7F7A1F
#7F7A1F is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.109 H 106.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7F7A1F |
|---|---|
| RGB | rgb(127, 122, 31) |
| HSL | hsl(57, 61%, 31%) |
| HSV | hsv(57, 76%, 50%) |
| CMYK | cmyk(0%, 3.9%, 75.6%, 50.2%) |
| CIE-LAB | lab(50.13, -9.21, 47.36) |
| CIE-LCH | lch(50.13, 48.25, 101.01°) |
| OKLab | oklab(56.7% -0.0303 0.1044) |
| OKLCH | oklch(56.7% 0.109 106.2) |
| XYZ | xyz(15.9599, 18.5306, 4.0321) |
| Luminance | 0.1853 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.55
Ugly Brown
#7D7103
ΔE00 4.13
Olive (survey)
#6E750E
ΔE00 4.60
Shit Green
#758000
ΔE00 5.02
Poop Green
#6F7C00
ΔE00 5.32
Brown Green
#706C11
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F7A1F #1F247F
analogous
#7F4A1F #7F7A1F #547F1F
triadic
#7F7A1F #1F7F7A #7A1F7F
tetradic
#7F7A1F #1F7F4A #1F247F #7F1F54
square
#7F7A1F #1F7F4A #1F247F #7F1F54
split-complementary
#7F7A1F #1F547F #4A1F7F
monochromatic
#1D1B07 #4E4B13 #7F7A1F #B0A92B #D2CB46
Accessibility & contrast
On white
4.46
#7F7A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#7F7A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F7A1F
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F7A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F7A1F | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7f7a1f; /* rgb */ color: rgb(127, 122, 31); /* oklch */ color: oklch(56.7% 0.109 106.2);
Tailwind
colors: {
custom: {
50: '#a7a062',
500: '#7f7a1f',
950: '#000000',
},
}SCSS
$custom: #7f7a1f; $custom-light: #a7a062; $custom-dark: #000000;
JSON
{
"hex": "#7f7a1f",
"rgb": {
"r": 127,
"g": 122,
"b": 31
},
"hsl": {
"h": 56.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.56696,
"c": 0.10875,
"h": 106.2
},
"luminance": 0.1853
}Semantic roles & 50–950 ramp
primary
#7F7A1F
secondary
#484DB2
accent
#4CE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A