#816D17#816D17

#816D17 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.9% C 0.102 H 95.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#816D17
RGBrgb(129, 109, 23)
HSLhsl(49, 70%, 30%)
HSVhsv(49, 82%, 51%)
CMYKcmyk(0%, 15.5%, 82.2%, 49.4%)
CIE-LABlab(46.53, -1.30, 47.00)
CIE-LCHlch(46.53, 47.02, 91.58°)
OKLaboklab(53.87% -0.0089 0.1019)
OKLCHoklch(53.87% 0.102 95)
XYZxyz(14.6774, 15.6671, 3.0614)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816D17 #172B81
analogous
#813817 #816D17 #608117
triadic
#816D17 #17816D #6D1781
tetradic
#816D17 #178138 #172B81 #811760
square
#816D17 #178138 #172B81 #811760
split-complementary
#816D17 #176081 #381781
monochromatic
#1A1605 #4D410E #816D17 #B59920 #DBBC37

Accessibility & contrast

On white

5.08
#816D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#816D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #816D17
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816D17#FFFFFF#000000##FFFFFF
##816D171.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B03
Deuteranopia (green-blind)
#7E711D
Tritanopia (blue-blind)
#8C645D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #816d17;
/* rgb */ color: rgb(129, 109, 23);
/* oklch */ color: oklch(53.9% 0.102 95.0);
Tailwind
colors: {
  custom: {
    50: '#a9965c',
    500: '#816d17',
    950: '#000000',
  },
}
SCSS
$custom: #816d17;
$custom-light: #a9965c;
$custom-dark: #000000;
JSON
{
  "hex": "#816d17",
  "rgb": {
    "r": 129,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 48.679,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5387,
    "c": 0.10229,
    "h": 95
  },
  "luminance": 0.15666
}

Semantic roles & 50–950 ramp

primary
#816D17
secondary
#3E55B5
accent
#5DED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #816D17

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

Preview Lab → · Contrast checker → · Palette generator →

#816D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva