#7D731F#7D731F
#7D731F is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.9% C 0.102 H 102.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7D731F |
|---|---|
| RGB | rgb(125, 115, 31) |
| HSL | hsl(54, 60%, 31%) |
| HSV | hsv(54, 75%, 49%) |
| CMYK | cmyk(0%, 8%, 75.2%, 51%) |
| CIE-LAB | lab(47.91, -6.25, 45.16) |
| CIE-LCH | lch(47.91, 45.59, 97.87°) |
| OKLab | oklab(54.88% -0.0219 0.0999) |
| OKLCH | oklch(54.88% 0.102 102.3) |
| XYZ | xyz(14.8362, 16.7210, 3.7421) |
| Luminance | 0.1672 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 2.48
Brown Green
#706C11
ΔE00 3.73
Browny Green
#6F6C0A
ΔE00 4.06
Hazel
#8E7618
ΔE00 5.26
Olive (survey)
#6E750E
ΔE00 5.38
Brownish Green
#6A6E09
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D731F #1F297D
analogous
#7D441F #7D731F #587D1F
triadic
#7D731F #1F7D73 #731F7D
tetradic
#7D731F #1F7D44 #1F297D #7D1F58
square
#7D731F #1F7D44 #1F297D #7D1F58
split-complementary
#7D731F #1F587D #441F7D
monochromatic
#1B1907 #4C4613 #7D731F #AEA02B #D1C245
Accessibility & contrast
On white
4.83
#7D731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#7D731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D731F
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D731F | 1.00 | 4.83 | 4.34 | 4.83 |
| #FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#876A63
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7d731f; /* rgb */ color: rgb(125, 115, 31); /* oklch */ color: oklch(54.9% 0.102 102.3);
Tailwind
colors: {
custom: {
50: '#a69b61',
500: '#7d731f',
950: '#000000',
},
}SCSS
$custom: #7d731f; $custom-light: #a69b61; $custom-dark: #000000;
JSON
{
"hex": "#7d731f",
"rgb": {
"r": 125,
"g": 115,
"b": 31
},
"hsl": {
"h": 53.617,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.54879,
"c": 0.10221,
"h": 102.3
},
"luminance": 0.1672
}Semantic roles & 50–950 ramp
primary
#7D731F
secondary
#4853B0
accent
#55E344
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79