#8C821F#8C821F
#8C821F is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.8% C 0.115 H 103.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #8C821F |
|---|---|
| RGB | rgb(140, 130, 31) |
| HSL | hsl(54, 64%, 34%) |
| HSV | hsv(54, 78%, 55%) |
| CMYK | cmyk(0%, 7.1%, 77.9%, 45.1%) |
| CIE-LAB | lab(53.64, -7.60, 51.08) |
| CIE-LCH | lch(53.64, 51.64, 98.46°) |
| OKLab | oklab(59.78% -0.0265 0.1118) |
| OKLCH | oklch(59.78% 0.115 103.3) |
| XYZ | xyz(19.0460, 21.6405, 4.4698) |
| Luminance | 0.2164 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.66
Baby Poop
#937C00
ΔE00 4.65
Hazel
#8E7618
ΔE00 5.82
Diarrhea
#9F8303
ΔE00 6.15
Shit Green
#758000
ΔE00 6.48
Ugly Brown
#7D7103
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C821F #1F298C
analogous
#8C4B1F #8C821F #5F8C1F
triadic
#8C821F #1F8C82 #821F8C
tetradic
#8C821F #1F8C4B #1F298C #8C1F5F
square
#8C821F #1F8C4B #1F298C #8C1F5F
split-complementary
#8C821F #1F5F8C #4B1F8C
monochromatic
#282509 #5A5314 #8C821F #BEB12A #D8CB4E
Accessibility & contrast
On white
3.94
#8C821F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.33
#8C821F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C821F
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C821F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C821F | 1.00 | 3.94 | 5.33 | 5.33 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7E09
Deuteranopia (green-blind)
#928226
Tritanopia (blue-blind)
#97786F
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #8c821f; /* rgb */ color: rgb(140, 130, 31); /* oklch */ color: oklch(59.8% 0.115 103.3);
Tailwind
colors: {
custom: {
50: '#b1a663',
500: '#8c821f',
950: '#000000',
},
}SCSS
$custom: #8c821f; $custom-light: #b1a663; $custom-dark: #000000;
JSON
{
"hex": "#8c821f",
"rgb": {
"r": 140,
"g": 130,
"b": 31
},
"hsl": {
"h": 54.495,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.59778,
"c": 0.1149,
"h": 103.3
},
"luminance": 0.2164
}Semantic roles & 50–950 ramp
primary
#8C821F
secondary
#4C56BB
accent
#50E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A