#817B16#817B16

#817B16 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.1% C 0.114 H 105.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#817B16
RGBrgb(129, 123, 22)
HSLhsl(57, 71%, 30%)
HSVhsv(57, 83%, 51%)
CMYKcmyk(0%, 4.7%, 82.9%, 49.4%)
CIE-LABlab(50.56, -9.21, 50.88)
CIE-LCHlch(50.56, 51.71, 100.26°)
OKLaboklab(57.06% -0.0313 0.1101)
OKLCHoklch(57.06% 0.114 105.9)
XYZxyz(16.2818, 18.8916, 3.5477)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817B16 #161C81
analogous
#814616 #817B16 #518116
triadic
#817B16 #16817B #7B1681
tetradic
#817B16 #168146 #161C81 #811651
square
#817B16 #168146 #161C81 #811651
split-complementary
#817B16 #165181 #461681
monochromatic
#1A1904 #4D490D #817B16 #B5AD1F #DDD335

Accessibility & contrast

On white

4.39
#817B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#817B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817B16
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817B16#FFFFFF#000000##000000
##817B161.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#897A1F
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817b16;
/* rgb */ color: rgb(129, 123, 22);
/* oklch */ color: oklch(57.1% 0.114 105.9);
Tailwind
colors: {
  custom: {
    50: '#a9a05e',
    500: '#817b16',
    950: '#000000',
  },
}
SCSS
$custom: #817b16;
$custom-light: #a9a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#817b16",
  "rgb": {
    "r": 129,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 56.636,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57064,
    "c": 0.11441,
    "h": 105.9
  },
  "luminance": 0.18891
}

Semantic roles & 50–950 ramp

primary
#817B16
secondary
#3D44B6
accent
#44EE3A
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817B16

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

Preview Lab → · Contrast checker → · Palette generator →

#817B16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva