#7B871A#7B871A
#7B871A is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.127 H 116.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #7B871A |
|---|---|
| RGB | rgb(123, 135, 26) |
| HSL | hsl(67, 68%, 32%) |
| HSV | hsv(67, 81%, 53%) |
| CMYK | cmyk(8.9%, 0%, 80.7%, 47.1%) |
| CIE-LAB | lab(53.61, -18.24, 52.17) |
| CIE-LCH | lch(53.61, 55.27, 109.28°) |
| OKLab | oklab(59.39% -0.0557 0.1138) |
| OKLCH | oklch(59.39% 0.127 116.1) |
| XYZ | xyz(17.0193, 21.6137, 4.2524) |
| Luminance | 0.2161 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 1.97
Shit Green
#758000
ΔE00 2.88
Olive
#808000
ΔE00 4.20
Dark Yellow Green
#728F02
ΔE00 4.26
Poop Green
#6F7C00
ΔE00 4.38
Murky Green
#6C7A0E
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B871A #261A87
analogous
#875D1A #7B871A #44871A
triadic
#7B871A #1A7B87 #871A7B
tetradic
#7B871A #1A875D #261A87 #871A44
square
#7B871A #1A875D #261A87 #871A44
split-complementary
#7B871A #1A4487 #5D1A87
monochromatic
#1D2006 #4C5410 #7B871A #AABA24 #CADA41
Accessibility & contrast
On white
3.95
#7B871A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.32
#7B871A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7B871A
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B871A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7B871A | 1.00 | 3.95 | 5.32 | 5.32 |
| #FFFFFF | 3.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #7b871a; /* rgb */ color: rgb(123, 135, 26); /* oklch */ color: oklch(59.4% 0.127 116.1);
Tailwind
colors: {
custom: {
50: '#a4a961',
500: '#7b871a',
950: '#000000',
},
}SCSS
$custom: #7b871a; $custom-light: #a4a961; $custom-dark: #000000;
JSON
{
"hex": "#7b871a",
"rgb": {
"r": 123,
"g": 135,
"b": 26
},
"hsl": {
"h": 66.606,
"s": 67.702,
"l": 31.569
},
"oklch": {
"l": 0.59389,
"c": 0.12673,
"h": 116.1
},
"luminance": 0.21613
}Semantic roles & 50–950 ramp
primary
#7B871A
secondary
#5042BA
accent
#3DEB50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A