#7C821C#7C821C
#7C821C is a mid, moderate 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 | #7C821C |
|---|---|
| RGB | rgb(124, 130, 28) |
| HSL | hsl(64, 65%, 31%) |
| HSV | hsv(64, 78%, 51%) |
| CMYK | cmyk(4.6%, 0%, 78.5%, 49%) |
| CIE-LAB | lab(52.21, -15.07, 50.28) |
| CIE-LCH | lch(52.21, 52.49, 106.69°) |
| OKLab | oklab(58.29% -0.0468 0.1102) |
| OKLCH | oklch(58.29% 0.12 113) |
| XYZ | xyz(16.5049, 20.3346, 4.1539) |
| Luminance | 0.2033 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.24
Olive
#808000
ΔE00 2.78
Swamp Green
#748500
ΔE00 3.08
Poop Green
#6F7C00
ΔE00 3.52
Murky Green
#6C7A0E
ΔE00 4.28
Olive (survey)
#6E750E
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C821C #221C82
analogous
#82551C #7C821C #49821C
triadic
#7C821C #1C7C82 #821C7C
tetradic
#7C821C #1C8255 #221C82 #821C49
square
#7C821C #1C8255 #221C82 #821C49
split-complementary
#7C821C #1C4982 #551C82
monochromatic
#1C1D06 #4C5011 #7C821C #ACB427 #CED642
Accessibility & contrast
On white
4.14
#7C821C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#7C821C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7C821C
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C821C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7C821C | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 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)
#8C7B02
Deuteranopia (green-blind)
#8C7E25
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #7c821c; /* rgb */ color: rgb(124, 130, 28); /* oklch */ color: oklch(58.3% 0.120 113.0);
Tailwind
colors: {
custom: {
50: '#a5a661',
500: '#7c821c',
950: '#000000',
},
}SCSS
$custom: #7c821c; $custom-light: #a5a661; $custom-dark: #000000;
JSON
{
"hex": "#7c821c",
"rgb": {
"r": 124,
"g": 130,
"b": 28
},
"hsl": {
"h": 63.529,
"s": 64.557,
"l": 30.98
},
"oklch": {
"l": 0.58288,
"c": 0.11969,
"h": 113
},
"luminance": 0.20334
}Semantic roles & 50–950 ramp
primary
#7C821C
secondary
#4B44B5
accent
#40E84A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A