#7F781B#7F781B
#7F781B 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.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7F781B |
|---|---|
| RGB | rgb(127, 120, 27) |
| HSL | hsl(56, 65%, 30%) |
| HSV | hsv(56, 79%, 50%) |
| CMYK | cmyk(0%, 5.5%, 78.7%, 50.2%) |
| CIE-LAB | lab(49.53, -8.29, 48.25) |
| CIE-LCH | lch(49.53, 48.96, 99.75°) |
| OKLab | oklab(56.2% -0.0281 0.1055) |
| OKLCH | oklch(56.2% 0.109 104.9) |
| XYZ | xyz(15.6674, 18.0247, 3.6905) |
| Luminance | 0.1802 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ugly Brown
#7D7103
ΔE00 3.19
Olive
#808000
ΔE00 4.00
Olive (survey)
#6E750E
ΔE00 4.76
Brown Green
#706C11
ΔE00 4.95
Browny Green
#6F6C0A
ΔE00 5.07
Hazel
#8E7618
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F781B #1B227F
analogous
#7F461B #7F781B #547F1B
triadic
#7F781B #1B7F78 #781B7F
tetradic
#7F781B #1B7F46 #1B227F #7F1B54
square
#7F781B #1B7F46 #1B227F #7F1B54
split-complementary
#7F781B #1B547F #461B7F
monochromatic
#1A1906 #4D4810 #7F781B #B1A826 #D6CB3E
Accessibility & contrast
On white
4.56
#7F781B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#7F781B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7F781B
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F781B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7F781B | 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)
#837405
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #7f781b; /* rgb */ color: rgb(127, 120, 27); /* oklch */ color: oklch(56.2% 0.109 104.9);
Tailwind
colors: {
custom: {
50: '#a79e60',
500: '#7f781b',
950: '#000000',
},
}SCSS
$custom: #7f781b; $custom-light: #a79e60; $custom-dark: #000000;
JSON
{
"hex": "#7f781b",
"rgb": {
"r": 127,
"g": 120,
"b": 27
},
"hsl": {
"h": 55.8,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.56204,
"c": 0.10921,
"h": 104.9
},
"luminance": 0.18024
}Semantic roles & 50–950 ramp
primary
#7F781B
secondary
#434BB3
accent
#4CE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79