#816F17#816F17

#816F17 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.104 H 96.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#816F17
RGBrgb(129, 111, 23)
HSLhsl(50, 70%, 30%)
HSVhsv(50, 82%, 51%)
CMYKcmyk(0%, 14%, 82.2%, 49.4%)
CIE-LABlab(47.10, -2.44, 47.51)
CIE-LCHlch(47.10, 47.57, 92.94°)
OKLaboklab(54.32% -0.0122 0.103)
OKLCHoklch(54.32% 0.104 96.7)
XYZxyz(14.8932, 16.0987, 3.1333)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#816F17 #172981
analogous
#813A17 #816F17 #5E8117
triadic
#816F17 #17816F #6F1781
tetradic
#816F17 #17813A #172981 #81175E
square
#816F17 #17813A #172981 #81175E
split-complementary
#816F17 #175E81 #3A1781
monochromatic
#1A1605 #4D420E #816F17 #B59C20 #DBBF37

Accessibility & contrast

On white

4.98
#816F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#816F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #816F17
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##816F17#FFFFFF#000000##FFFFFF
##816F171.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#80721D
Tritanopia (blue-blind)
#8C665F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #816f17;
/* rgb */ color: rgb(129, 111, 23);
/* oklch */ color: oklch(54.3% 0.104 96.7);
Tailwind
colors: {
  custom: {
    50: '#a9985d',
    500: '#816f17',
    950: '#000000',
  },
}
SCSS
$custom: #816f17;
$custom-light: #a9985d;
$custom-dark: #000000;
JSON
{
  "hex": "#816f17",
  "rgb": {
    "r": 129,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 49.811,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5432,
    "c": 0.10372,
    "h": 96.7
  },
  "luminance": 0.16098
}

Semantic roles & 50–950 ramp

primary
#816F17
secondary
#3E53B5
accent
#59ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #816F17

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

Preview Lab → · Contrast checker → · Palette generator →

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