#7C821B#7C821B
#7C821B is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.120 H 113.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #7C821B |
|---|---|
| RGB | rgb(124, 130, 27) |
| HSL | hsl(63, 66%, 31%) |
| HSV | hsv(63, 79%, 51%) |
| CMYK | cmyk(4.6%, 0%, 79.2%, 49%) |
| CIE-LAB | lab(52.21, -15.12, 50.61) |
| CIE-LCH | lch(52.21, 52.82, 106.63°) |
| OKLab | oklab(58.28% -0.047 0.1107) |
| OKLCH | oklch(58.28% 0.12 113) |
| XYZ | xyz(16.4932, 20.3299, 4.0919) |
| Luminance | 0.2033 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.17
Olive
#808000
ΔE00 2.70
Swamp Green
#748500
ΔE00 3.04
Poop Green
#6F7C00
ΔE00 3.49
Murky Green
#6C7A0E
ΔE00 4.29
Olive (survey)
#6E750E
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C821B #211B82
analogous
#82541B #7C821B #48821B
triadic
#7C821B #1B7C82 #821B7C
tetradic
#7C821B #1B8254 #211B82 #821B48
square
#7C821B #1B8254 #211B82 #821B48
split-complementary
#7C821B #1B4882 #541B82
monochromatic
#1B1D06 #4C4F10 #7C821B #ACB526 #CFD740
Accessibility & contrast
On white
4.15
#7C821B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#7C821B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C821B
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C821B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C821B | 1.00 | 4.15 | 5.07 | 5.07 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7E24
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #7c821b; /* rgb */ color: rgb(124, 130, 27); /* oklch */ color: oklch(58.3% 0.120 113.0);
Tailwind
colors: {
custom: {
50: '#a5a661',
500: '#7c821b',
950: '#000000',
},
}SCSS
$custom: #7c821b; $custom-light: #a5a661; $custom-dark: #000000;
JSON
{
"hex": "#7c821b",
"rgb": {
"r": 124,
"g": 130,
"b": 27
},
"hsl": {
"h": 63.495,
"s": 65.605,
"l": 30.784
},
"oklch": {
"l": 0.58282,
"c": 0.12024,
"h": 113
},
"luminance": 0.20329
}Semantic roles & 50–950 ramp
primary
#7C821B
secondary
#4A43B6
accent
#3FE949
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A