#817216#817216

#817216 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.107 H 99.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#817216
RGBrgb(129, 114, 22)
HSLhsl(52, 71%, 30%)
HSVhsv(52, 83%, 51%)
CMYKcmyk(0%, 11.6%, 82.9%, 49.4%)
CIE-LABlab(47.96, -4.18, 48.60)
CIE-LCHlch(47.96, 48.78, 94.92°)
OKLaboklab(55% -0.0172 0.1051)
OKLCHoklch(55% 0.107 99.3)
XYZxyz(15.2162, 16.7605, 3.1925)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817216 #162581
analogous
#813D16 #817216 #5B8116
triadic
#817216 #168172 #721681
tetradic
#817216 #16813D #162581 #81165B
square
#817216 #16813D #162581 #81165B
split-complementary
#817216 #165B81 #3D1681
monochromatic
#1A1704 #4D440D #817216 #B5A01F #DDC535

Accessibility & contrast

On white

4.83
#817216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#817216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #817216
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817216#FFFFFF#000000##FFFFFF
##8172161.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#82741D
Tritanopia (blue-blind)
#8C6961
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #817216;
/* rgb */ color: rgb(129, 114, 22);
/* oklch */ color: oklch(55.0% 0.107 99.3);
Tailwind
colors: {
  custom: {
    50: '#a99a5d',
    500: '#817216',
    950: '#000000',
  },
}
SCSS
$custom: #817216;
$custom-light: #a99a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#817216",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 51.589,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54995,
    "c": 0.10652,
    "h": 99.3
  },
  "luminance": 0.1676
}

Semantic roles & 50–950 ramp

primary
#817216
secondary
#3D4EB6
accent
#53EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817216

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

Preview Lab → · Contrast checker → · Palette generator →

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