#7F781A#7F781A
#7F781A is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.110 H 105.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7F781A |
|---|---|
| RGB | rgb(127, 120, 26) |
| HSL | hsl(56, 66%, 30%) |
| HSV | hsv(56, 80%, 50%) |
| CMYK | cmyk(0%, 5.5%, 79.5%, 50.2%) |
| CIE-LAB | lab(49.52, -8.33, 48.59) |
| CIE-LCH | lch(49.52, 49.30, 99.73°) |
| OKLab | oklab(56.2% -0.0284 0.1061) |
| OKLCH | oklch(56.2% 0.11 105) |
| XYZ | xyz(15.6560, 18.0202, 3.6306) |
| Luminance | 0.1802 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.14
Olive
#808000
ΔE00 3.94
Olive (survey)
#6E750E
ΔE00 4.76
Brown Green
#706C11
ΔE00 4.96
Browny Green
#6F6C0A
ΔE00 5.07
Hazel
#8E7618
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F781A #1A217F
analogous
#7F461A #7F781A #537F1A
triadic
#7F781A #1A7F78 #781A7F
tetradic
#7F781A #1A7F46 #1A217F #7F1A53
square
#7F781A #1A7F46 #1A217F #7F1A53
split-complementary
#7F781A #1A537F #461A7F
monochromatic
#191805 #4C4810 #7F781A #B2A824 #D7CC3C
Accessibility & contrast
On white
4.56
#7F781A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#7F781A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F781A
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F781A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F781A | 1.00 | 4.56 | 4.60 | 4.60 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#867821
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7f781a; /* rgb */ color: rgb(127, 120, 26); /* oklch */ color: oklch(56.2% 0.110 105.0);
Tailwind
colors: {
custom: {
50: '#a79e5f',
500: '#7f781a',
950: '#000000',
},
}SCSS
$custom: #7f781a; $custom-light: #a79e5f; $custom-dark: #000000;
JSON
{
"hex": "#7f781a",
"rgb": {
"r": 127,
"g": 120,
"b": 26
},
"hsl": {
"h": 55.842,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.56198,
"c": 0.10978,
"h": 105
},
"luminance": 0.1802
}Semantic roles & 50–950 ramp
primary
#7F781A
secondary
#424AB3
accent
#4BE93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79