#818521#818521

#818521 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.119 H 111.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#818521
RGBrgb(129, 133, 33)
HSLhsl(62, 60%, 33%)
HSVhsv(62, 75%, 52%)
CMYKcmyk(3%, 0%, 75.2%, 47.8%)
CIE-LABlab(53.55, -14.17, 49.93)
CIE-LCHlch(53.55, 51.90, 105.84°)
OKLaboklab(59.47% -0.0441 0.1102)
OKLCHoklch(59.47% 0.119 111.8)
XYZxyz(17.7159, 21.5524, 4.6654)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818521 #252185
analogous
#855721 #818521 #4F8521
triadic
#818521 #218185 #852181
tetradic
#818521 #218557 #252185 #85214F
square
#818521 #218557 #252185 #85214F
split-complementary
#818521 #214F85 #572185
monochromatic
#222309 #515415 #818521 #B1B62D #CED34D

Accessibility & contrast

On white

3.95
#818521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#818521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818521
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818521#FFFFFF#000000##000000
##8185211.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#8A7D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #818521;
/* rgb */ color: rgb(129, 133, 33);
/* oklch */ color: oklch(59.5% 0.119 111.8);
Tailwind
colors: {
  custom: {
    50: '#a9a864',
    500: '#818521',
    950: '#000000',
  },
}
SCSS
$custom: #818521;
$custom-light: #a9a864;
$custom-dark: #000000;
JSON
{
  "hex": "#818521",
  "rgb": {
    "r": 129,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 62.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5947,
    "c": 0.11867,
    "h": 111.8
  },
  "luminance": 0.21552
}

Semantic roles & 50–950 ramp

primary
#818521
secondary
#504CB6
accent
#44E34B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #818521

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

Preview Lab → · Contrast checker → · Palette generator →

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