#7E731F#7E731F
#7E731F is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.102 H 101.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #7E731F |
|---|---|
| RGB | rgb(126, 115, 31) |
| HSL | hsl(53, 61%, 31%) |
| HSV | hsv(53, 75%, 49%) |
| CMYK | cmyk(0%, 8.7%, 75.4%, 50.6%) |
| CIE-LAB | lab(48.00, -5.78, 45.29) |
| CIE-LCH | lch(48.00, 45.65, 97.27°) |
| OKLab | oklab(54.98% -0.0206 0.1001) |
| OKLCH | oklch(54.98% 0.102 101.6) |
| XYZ | xyz(14.9829, 16.7967, 3.7489) |
| Luminance | 0.1680 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 2.41
Brown Green
#706C11
ΔE00 3.97
Browny Green
#6F6C0A
ΔE00 4.31
Hazel
#8E7618
ΔE00 4.93
Brownish Green
#6A6E09
ΔE00 5.70
Olive (survey)
#6E750E
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E731F #1F2A7E
analogous
#7E431F #7E731F #597E1F
triadic
#7E731F #1F7E73 #731F7E
tetradic
#7E731F #1F7E43 #1F2A7E #7E1F59
square
#7E731F #1F7E43 #1F2A7E #7E1F59
split-complementary
#7E731F #1F597E #431F7E
monochromatic
#1C1907 #4D4613 #7E731F #AFA02B #D1C146
Accessibility & contrast
On white
4.82
#7E731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#7E731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E731F
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E731F | 1.00 | 4.82 | 4.36 | 4.82 |
| #FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#886A63
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7e731f; /* rgb */ color: rgb(126, 115, 31); /* oklch */ color: oklch(55.0% 0.102 101.6);
Tailwind
colors: {
custom: {
50: '#a79b61',
500: '#7e731f',
950: '#000000',
},
}SCSS
$custom: #7e731f; $custom-light: #a79b61; $custom-dark: #000000;
JSON
{
"hex": "#7e731f",
"rgb": {
"r": 126,
"g": 115,
"b": 31
},
"hsl": {
"h": 53.053,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.54978,
"c": 0.10218,
"h": 101.6
},
"luminance": 0.16796
}Semantic roles & 50–950 ramp
primary
#7E731F
secondary
#4854B1
accent
#57E444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79