#7F7C1F#7F7C1F
#7F7C1F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.2% C 0.111 H 107.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7F7C1F |
|---|---|
| RGB | rgb(127, 124, 31) |
| HSL | hsl(58, 61%, 31%) |
| HSV | hsv(58, 76%, 50%) |
| CMYK | cmyk(0%, 2.4%, 75.6%, 50.2%) |
| CIE-LAB | lab(50.72, -10.31, 47.92) |
| CIE-LCH | lch(50.72, 49.01, 102.14°) |
| OKLab | oklab(57.16% -0.0334 0.1056) |
| OKLCH | oklch(57.16% 0.111 107.6) |
| XYZ | xyz(16.2080, 19.0268, 4.1148) |
| Luminance | 0.1903 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.94
Shit Green
#758000
ΔE00 4.31
Olive (survey)
#6E750E
ΔE00 4.58
Poop Green
#6F7C00
ΔE00 4.81
Ugly Brown
#7D7103
ΔE00 4.90
Murky Green
#6C7A0E
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F7C1F #1F227F
analogous
#7F4C1F #7F7C1F #527F1F
triadic
#7F7C1F #1F7F7C #7C1F7F
tetradic
#7F7C1F #1F7F4C #1F227F #7F1F52
square
#7F7C1F #1F7F4C #1F227F #7F1F52
split-complementary
#7F7C1F #1F527F #4C1F7F
monochromatic
#1D1C07 #4E4C13 #7F7C1F #B0AC2B #D2CE46
Accessibility & contrast
On white
4.37
#7F7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#7F7C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F7C1F
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F7C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F7C1F | 1.00 | 4.37 | 4.81 | 4.81 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#897A26
Tritanopia (blue-blind)
#89736A
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7f7c1f; /* rgb */ color: rgb(127, 124, 31); /* oklch */ color: oklch(57.2% 0.111 107.6);
Tailwind
colors: {
custom: {
50: '#a7a162',
500: '#7f7c1f',
950: '#000000',
},
}SCSS
$custom: #7f7c1f; $custom-light: #a7a162; $custom-dark: #000000;
JSON
{
"hex": "#7f7c1f",
"rgb": {
"r": 127,
"g": 124,
"b": 31
},
"hsl": {
"h": 58.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.57162,
"c": 0.11077,
"h": 107.6
},
"luminance": 0.19026
}Semantic roles & 50–950 ramp
primary
#7F7C1F
secondary
#484BB2
accent
#49E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A