#817221#817221

#817221 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.1% C 0.100 H 98.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#817221
RGBrgb(129, 114, 33)
HSLhsl(51, 59%, 32%)
HSVhsv(51, 74%, 51%)
CMYKcmyk(0%, 11.6%, 74.4%, 49.4%)
CIE-LABlab(48.02, -3.70, 44.60)
CIE-LCHlch(48.02, 44.75, 94.74°)
OKLaboklab(55.07% -0.0147 0.0989)
OKLCHoklch(55.07% 0.1 98.4)
XYZxyz(15.3458, 16.8123, 3.8753)
Luminance0.1681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817221 #213081
analogous
#814221 #817221 #608121
triadic
#817221 #218172 #722181
tetradic
#817221 #218142 #213081 #812160
square
#817221 #218142 #213081 #812160
split-complementary
#817221 #216081 #422181
monochromatic
#201C08 #504715 #817221 #B29D2D #D1BC4B

Accessibility & contrast

On white

4.81
#817221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#817221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #817221
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817221#FFFFFF#000000##FFFFFF
##8172211.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#8B6962
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #817221;
/* rgb */ color: rgb(129, 114, 33);
/* oklch */ color: oklch(55.1% 0.100 98.4);
Tailwind
colors: {
  custom: {
    50: '#a99a62',
    500: '#817221',
    950: '#000000',
  },
}
SCSS
$custom: #817221;
$custom-light: #a99a62;
$custom-dark: #000000;
JSON
{
  "hex": "#817221",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 50.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55068,
    "c": 0.09998,
    "h": 98.4
  },
  "luminance": 0.16812
}

Semantic roles & 50–950 ramp

primary
#817221
secondary
#4A5BB4
accent
#5EE245
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #817221

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

Preview Lab → · Contrast checker → · Palette generator →

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