#7A841F#7A841F
#7A841F is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.121 H 115.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7A841F |
|---|---|
| RGB | rgb(122, 132, 31) |
| HSL | hsl(66, 62%, 32%) |
| HSV | hsv(66, 77%, 52%) |
| CMYK | cmyk(7.6%, 0%, 76.5%, 48.2%) |
| CIE-LAB | lab(52.66, -16.90, 49.60) |
| CIE-LCH | lch(52.66, 52.40, 108.81°) |
| OKLab | oklab(58.61% -0.0515 0.1094) |
| OKLCH | oklch(58.61% 0.121 115.2) |
| XYZ | xyz(16.5251, 20.7393, 4.4286) |
| Luminance | 0.2074 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 2.45
Shit Green
#758000
ΔE00 2.47
Poop Green
#6F7C00
ΔE00 3.68
Olive
#808000
ΔE00 3.88
Murky Green
#6C7A0E
ΔE00 4.32
Khaki Green
#728639
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A841F #291F84
analogous
#845C1F #7A841F #47841F
triadic
#7A841F #1F7A84 #841F7A
tetradic
#7A841F #1F845C #291F84 #841F47
square
#7A841F #1F845C #291F84 #841F47
split-complementary
#7A841F #1F4784 #5C1F84
monochromatic
#1E2108 #4C5213 #7A841F #A8B62B #C7D449
Accessibility & contrast
On white
4.08
#7A841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#7A841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7A841F
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7A841F | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#827C71
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #7a841f; /* rgb */ color: rgb(122, 132, 31); /* oklch */ color: oklch(58.6% 0.121 115.2);
Tailwind
colors: {
custom: {
50: '#a3a763',
500: '#7a841f',
950: '#000000',
},
}SCSS
$custom: #7a841f; $custom-light: #a3a763; $custom-dark: #000000;
JSON
{
"hex": "#7a841f",
"rgb": {
"r": 122,
"g": 132,
"b": 31
},
"hsl": {
"h": 65.941,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.58613,
"c": 0.12087,
"h": 115.2
},
"luminance": 0.20739
}Semantic roles & 50–950 ramp
primary
#7A841F
secondary
#5348B7
accent
#43E553
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A