#8C8221#8C8221

#8C8221 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.114 H 103.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8C8221
RGBrgb(140, 130, 33)
HSLhsl(54, 62%, 34%)
HSVhsv(54, 76%, 55%)
CMYKcmyk(0%, 7.1%, 76.4%, 45.1%)
CIE-LABlab(53.66, -7.51, 50.37)
CIE-LCHlch(53.66, 50.93, 98.48°)
OKLaboklab(59.79% -0.0261 0.1107)
OKLCHoklch(59.79% 0.114 103.3)
XYZxyz(19.0732, 21.6513, 4.6130)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8221 #212B8C
analogous
#8C4D21 #8C8221 #618C21
triadic
#8C8221 #218C82 #82218C
tetradic
#8C8221 #218C4D #212B8C #8C2161
square
#8C8221 #218C4D #212B8C #8C2161
split-complementary
#8C8221 #21618C #4D218C
monochromatic
#29260A #5A5415 #8C8221 #BEB02D #D6CA51

Accessibility & contrast

On white

3.94
#8C8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8C8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8221
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8221#FFFFFF#000000##000000
##8C82211.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0E
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#97786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8c8221;
/* rgb */ color: rgb(140, 130, 33);
/* oklch */ color: oklch(59.8% 0.114 103.3);
Tailwind
colors: {
  custom: {
    50: '#b1a664',
    500: '#8c8221',
    950: '#000000',
  },
}
SCSS
$custom: #8c8221;
$custom-light: #b1a664;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8221",
  "rgb": {
    "r": 140,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 54.393,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59791,
    "c": 0.11372,
    "h": 103.3
  },
  "luminance": 0.21651
}

Semantic roles & 50–950 ramp

primary
#8C8221
secondary
#4F59B9
accent
#52E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C8221

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8C8221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva