#7D781F#7D781F
#7D781F is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.107 H 106.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7D781F |
|---|---|
| RGB | rgb(125, 120, 31) |
| HSL | hsl(57, 60%, 31%) |
| HSV | hsv(57, 75%, 49%) |
| CMYK | cmyk(0%, 4%, 75.2%, 51%) |
| CIE-LAB | lab(49.37, -9.04, 46.56) |
| CIE-LCH | lch(49.37, 47.43, 100.98°) |
| OKLab | oklab(56.04% -0.0297 0.1028) |
| OKLCH | oklch(56.04% 0.107 106.1) |
| XYZ | xyz(15.4219, 17.8924, 3.9373) |
| Luminance | 0.1789 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.72
Olive
#808000
ΔE00 4.18
Olive (survey)
#6E750E
ΔE00 4.20
Brown Green
#706C11
ΔE00 4.71
Browny Green
#6F6C0A
ΔE00 4.86
Brownish Green
#6A6E09
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D781F #1F247D
analogous
#7D491F #7D781F #537D1F
triadic
#7D781F #1F7D78 #781F7D
tetradic
#7D781F #1F7D49 #1F247D #7D1F53
square
#7D781F #1F7D49 #1F247D #7D1F53
split-complementary
#7D781F #1F537D #491F7D
monochromatic
#1B1A07 #4C4913 #7D781F #AEA72B #D1CA45
Accessibility & contrast
On white
4.59
#7D781F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#7D781F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7D781F
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D781F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D781F | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730E
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#877067
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7d781f; /* rgb */ color: rgb(125, 120, 31); /* oklch */ color: oklch(56.0% 0.107 106.1);
Tailwind
colors: {
custom: {
50: '#a69e62',
500: '#7d781f',
950: '#000000',
},
}SCSS
$custom: #7d781f; $custom-light: #a69e62; $custom-dark: #000000;
JSON
{
"hex": "#7d781f",
"rgb": {
"r": 125,
"g": 120,
"b": 31
},
"hsl": {
"h": 56.809,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.56039,
"c": 0.10703,
"h": 106.1
},
"luminance": 0.17892
}Semantic roles & 50–950 ramp
primary
#7D781F
secondary
#484DB0
accent
#4DE344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A