#7F781C#7F781C
#7F781C is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.109 H 104.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #7F781C |
|---|---|
| RGB | rgb(127, 120, 28) |
| HSL | hsl(56, 64%, 30%) |
| HSV | hsv(56, 78%, 50%) |
| CMYK | cmyk(0%, 5.5%, 78%, 50.2%) |
| CIE-LAB | lab(49.53, -8.25, 47.90) |
| CIE-LCH | lch(49.53, 48.60, 99.77°) |
| OKLab | oklab(56.21% -0.0279 0.105) |
| OKLCH | oklch(56.21% 0.109 104.9) |
| XYZ | xyz(15.6791, 18.0294, 3.7525) |
| Luminance | 0.1803 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.24
Olive
#808000
ΔE00 4.07
Olive (survey)
#6E750E
ΔE00 4.77
Brown Green
#706C11
ΔE00 4.94
Browny Green
#6F6C0A
ΔE00 5.08
Hazel
#8E7618
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F781C #1C237F
analogous
#7F471C #7F781C #547F1C
triadic
#7F781C #1C7F78 #781C7F
tetradic
#7F781C #1C7F47 #1C237F #7F1C54
square
#7F781C #1C7F47 #1C237F #7F1C54
split-complementary
#7F781C #1C547F #471C7F
monochromatic
#1B1906 #4D4911 #7F781C #B1A727 #D5CA40
Accessibility & contrast
On white
4.56
#7F781C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.61
#7F781C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F781C
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F781C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F781C | 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)
#837408
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7f781c; /* rgb */ color: rgb(127, 120, 28); /* oklch */ color: oklch(56.2% 0.109 104.9);
Tailwind
colors: {
custom: {
50: '#a79e60',
500: '#7f781c',
950: '#000000',
},
}SCSS
$custom: #7f781c; $custom-light: #a79e60; $custom-dark: #000000;
JSON
{
"hex": "#7f781c",
"rgb": {
"r": 127,
"g": 120,
"b": 28
},
"hsl": {
"h": 55.758,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.56211,
"c": 0.10863,
"h": 104.9
},
"luminance": 0.18029
}Semantic roles & 50–950 ramp
primary
#7F781C
secondary
#444CB3
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79