#7B841B#7B841B
#7B841B is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.123 H 114.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #7B841B |
|---|---|
| RGB | rgb(123, 132, 27) |
| HSL | hsl(65, 66%, 31%) |
| HSV | hsv(65, 80%, 52%) |
| CMYK | cmyk(6.8%, 0%, 79.5%, 48.2%) |
| CIE-LAB | lab(52.72, -16.63, 51.05) |
| CIE-LCH | lch(52.72, 53.69, 108.04°) |
| OKLab | oklab(58.67% -0.0511 0.1116) |
| OKLCH | oklch(58.67% 0.123 114.6) |
| XYZ | xyz(16.6180, 20.7929, 4.1747) |
| Luminance | 0.2079 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.22
Swamp Green
#748500
ΔE00 2.34
Olive
#808000
ΔE00 3.38
Poop Green
#6F7C00
ΔE00 3.65
Murky Green
#6C7A0E
ΔE00 4.46
Olive Green
#677A04
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B841B #241B84
analogous
#84581B #7B841B #46841B
triadic
#7B841B #1B7B84 #841B7B
tetradic
#7B841B #1B8458 #241B84 #841B46
square
#7B841B #1B8458 #241B84 #841B46
split-complementary
#7B841B #1B4684 #581B84
monochromatic
#1C1E06 #4C5111 #7B841B #AAB725 #CBD841
Accessibility & contrast
On white
4.07
#7B841B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#7B841B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7B841B
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B841B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7B841B | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#847C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7b841b; /* rgb */ color: rgb(123, 132, 27); /* oklch */ color: oklch(58.7% 0.123 114.6);
Tailwind
colors: {
custom: {
50: '#a4a761',
500: '#7b841b',
950: '#000000',
},
}SCSS
$custom: #7b841b; $custom-light: #a4a761; $custom-dark: #000000;
JSON
{
"hex": "#7b841b",
"rgb": {
"r": 123,
"g": 132,
"b": 27
},
"hsl": {
"h": 65.143,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.58674,
"c": 0.1228,
"h": 114.6
},
"luminance": 0.20793
}Semantic roles & 50–950 ramp
primary
#7B841B
secondary
#4D43B7
accent
#3FE94D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A