#7F781F#7F781F
#7F781F is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.107 H 104.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #7F781F |
|---|---|
| RGB | rgb(127, 120, 31) |
| HSL | hsl(56, 61%, 31%) |
| HSV | hsv(56, 76%, 50%) |
| CMYK | cmyk(0%, 5.5%, 75.6%, 50.2%) |
| CIE-LAB | lab(49.55, -8.10, 46.80) |
| CIE-LCH | lch(49.55, 47.50, 99.82°) |
| OKLab | oklab(56.23% -0.0272 0.1033) |
| OKLCH | oklch(56.23% 0.107 104.8) |
| XYZ | xyz(15.7169, 18.0445, 3.9511) |
| Luminance | 0.1804 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.41
Olive
#808000
ΔE00 4.28
Olive (survey)
#6E750E
ΔE00 4.81
Brown Green
#706C11
ΔE00 4.94
Browny Green
#6F6C0A
ΔE00 5.12
Hazel
#8E7618
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F781F #1F267F
analogous
#7F481F #7F781F #567F1F
triadic
#7F781F #1F7F78 #781F7F
tetradic
#7F781F #1F7F48 #1F267F #7F1F56
square
#7F781F #1F7F48 #1F267F #7F1F56
split-complementary
#7F781F #1F567F #481F7F
monochromatic
#1D1B07 #4E4A13 #7F781F #B0A62B #D2C846
Accessibility & contrast
On white
4.56
#7F781F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.61
#7F781F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F781F
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F781F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F781F | 1.00 | 4.56 | 4.61 | 4.61 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83740E
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7f781f; /* rgb */ color: rgb(127, 120, 31); /* oklch */ color: oklch(56.2% 0.107 104.8);
Tailwind
colors: {
custom: {
50: '#a79e62',
500: '#7f781f',
950: '#000000',
},
}SCSS
$custom: #7f781f; $custom-light: #a79e62; $custom-dark: #000000;
JSON
{
"hex": "#7f781f",
"rgb": {
"r": 127,
"g": 120,
"b": 31
},
"hsl": {
"h": 55.625,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.56231,
"c": 0.10678,
"h": 104.8
},
"luminance": 0.18044
}Semantic roles & 50–950 ramp
primary
#7F781F
secondary
#4850B2
accent
#50E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A