#818221#818221

#818221 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.8% C 0.115 H 110.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#818221
RGBrgb(129, 130, 33)
HSLhsl(61, 60%, 32%)
HSVhsv(61, 75%, 51%)
CMYKcmyk(0.8%, 0%, 74.6%, 49%)
CIE-LABlab(52.67, -12.56, 49.09)
CIE-LCHlch(52.67, 50.67, 104.35°)
OKLaboklab(58.76% -0.0396 0.1084)
OKLCHoklch(58.76% 0.115 110.1)
XYZxyz(17.3110, 20.7427, 4.5304)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818221 #222182
analogous
#825321 #818221 #508221
triadic
#818221 #218182 #822181
tetradic
#818221 #218253 #222182 #822150
square
#818221 #218253 #222182 #822150
split-complementary
#818221 #215082 #532182
monochromatic
#202008 #515115 #818221 #B1B32D #D0D24C

Accessibility & contrast

On white

4.08
#818221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#818221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818221
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818221#FFFFFF#000000##000000
##8182211.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0E
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#8A796F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #818221;
/* rgb */ color: rgb(129, 130, 33);
/* oklch */ color: oklch(58.8% 0.115 110.1);
Tailwind
colors: {
  custom: {
    50: '#a9a664',
    500: '#818221',
    950: '#000000',
  },
}
SCSS
$custom: #818221;
$custom-light: #a9a664;
$custom-dark: #000000;
JSON
{
  "hex": "#818221",
  "rgb": {
    "r": 129,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 60.619,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58764,
    "c": 0.11541,
    "h": 110.1
  },
  "luminance": 0.20742
}

Semantic roles & 50–950 ramp

primary
#818221
secondary
#4B4AB4
accent
#45E347
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #818221

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

Preview Lab → · Contrast checker → · Palette generator →

#818221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva