#7E7F2A#7E7F2A
#7E7F2A is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.106 H 110.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #7E7F2A |
|---|---|
| RGB | rgb(126, 127, 42) |
| HSL | hsl(61, 50%, 33%) |
| HSV | hsv(61, 67%, 50%) |
| CMYK | cmyk(0.8%, 0%, 66.9%, 50.2%) |
| CIE-LAB | lab(51.59, -11.78, 44.28) |
| CIE-LCH | lch(51.59, 45.82, 104.90°) |
| OKLab | oklab(57.86% -0.0363 0.1) |
| OKLCH | oklch(57.86% 0.106 110) |
| XYZ | xyz(16.6120, 19.7820, 5.1333) |
| Luminance | 0.1978 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.87
Shit Green
#758000
ΔE00 4.18
Drab
#828344
ΔE00 4.24
Poop Green
#6F7C00
ΔE00 4.73
Murky Green
#6C7A0E
ΔE00 4.93
Olive (survey)
#6E750E
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E7F2A #2B2A7F
analogous
#7F552A #7E7F2A #537F2A
triadic
#7E7F2A #2A7E7F #7F2A7E
tetradic
#7E7F2A #2A7F55 #2B2A7F #7F2A53
square
#7E7F2A #2A7F55 #2B2A7F #7F2A53
split-complementary
#7E7F2A #2A537F #552A7F
monochromatic
#23230C #50511B #7E7F2A #ACAD39 #C7C95B
Accessibility & contrast
On white
4.24
#7E7F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#7E7F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E7F2A
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E7F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E7F2A | 1.00 | 4.24 | 4.96 | 4.96 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897A1E
Deuteranopia (green-blind)
#8A7C30
Tritanopia (blue-blind)
#87776E
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #7e7f2a; /* rgb */ color: rgb(126, 127, 42); /* oklch */ color: oklch(57.9% 0.106 110.0);
Tailwind
colors: {
custom: {
50: '#a6a368',
500: '#7e7f2a',
950: '#000000',
},
}SCSS
$custom: #7e7f2a; $custom-light: #a6a368; $custom-dark: #000000;
JSON
{
"hex": "#7e7f2a",
"rgb": {
"r": 126,
"g": 127,
"b": 42
},
"hsl": {
"h": 60.706,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.57861,
"c": 0.10637,
"h": 110
},
"luminance": 0.19782
}Semantic roles & 50–950 ramp
primary
#7E7F2A
secondary
#5857AE
accent
#4EDA50
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A