#7D7A1F#7D7A1F
#7D7A1F is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.109 H 107.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #7D7A1F |
|---|---|
| RGB | rgb(125, 122, 31) |
| HSL | hsl(58, 60%, 31%) |
| HSV | hsv(58, 75%, 49%) |
| CMYK | cmyk(0%, 2.4%, 75.2%, 51%) |
| CIE-LAB | lab(49.95, -10.14, 47.12) |
| CIE-LCH | lch(49.95, 48.20, 102.14°) |
| OKLab | oklab(56.51% -0.0328 0.104) |
| OKLCH | oklch(56.51% 0.109 107.5) |
| XYZ | xyz(15.6649, 18.3785, 4.0183) |
| Luminance | 0.1838 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.52
Olive (survey)
#6E750E
ΔE00 4.04
Ugly Brown
#7D7103
ΔE00 4.45
Shit Green
#758000
ΔE00 4.57
Poop Green
#6F7C00
ΔE00 4.75
Murky Green
#6C7A0E
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D7A1F #1F227D
analogous
#7D4B1F #7D7A1F #517D1F
triadic
#7D7A1F #1F7D7A #7A1F7D
tetradic
#7D7A1F #1F7D4B #1F227D #7D1F51
square
#7D7A1F #1F7D4B #1F227D #7D1F51
split-complementary
#7D7A1F #1F517D #4B1F7D
monochromatic
#1B1A07 #4C4A13 #7D7A1F #AEAA2B #D1CD45
Accessibility & contrast
On white
4.49
#7D7A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#7D7A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7D7A1F
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D7A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7D7A1F | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#867268
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7d7a1f; /* rgb */ color: rgb(125, 122, 31); /* oklch */ color: oklch(56.5% 0.109 107.5);
Tailwind
colors: {
custom: {
50: '#a6a062',
500: '#7d7a1f',
950: '#000000',
},
}SCSS
$custom: #7d7a1f; $custom-light: #a6a062; $custom-dark: #000000;
JSON
{
"hex": "#7d7a1f",
"rgb": {
"r": 125,
"g": 122,
"b": 31
},
"hsl": {
"h": 58.085,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.56507,
"c": 0.10907,
"h": 107.5
},
"luminance": 0.18378
}Semantic roles & 50–950 ramp
primary
#7D7A1F
secondary
#484BB0
accent
#49E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A