#817A17#817A17

#817A17 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.8% C 0.113 H 105.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#817A17
RGBrgb(129, 122, 23)
HSLhsl(56, 70%, 30%)
HSVhsv(56, 82%, 51%)
CMYKcmyk(0%, 5.4%, 82.2%, 49.4%)
CIE-LABlab(50.27, -8.62, 50.32)
CIE-LCHlch(50.27, 51.05, 99.72°)
OKLaboklab(56.84% -0.0295 0.1091)
OKLCHoklch(56.84% 0.113 105.2)
XYZxyz(16.1682, 18.6487, 3.5584)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817A17 #171E81
analogous
#814517 #817A17 #538117
triadic
#817A17 #17817A #7A1781
tetradic
#817A17 #178145 #171E81 #811753
square
#817A17 #178145 #171E81 #811753
split-complementary
#817A17 #175381 #451781
monochromatic
#1A1905 #4D490E #817A17 #B5AB20 #DBD137

Accessibility & contrast

On white

4.44
#817A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#817A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817A17
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817A17#FFFFFF#000000##000000
##817A171.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#88791F
Tritanopia (blue-blind)
#8B7168
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817a17;
/* rgb */ color: rgb(129, 122, 23);
/* oklch */ color: oklch(56.8% 0.113 105.2);
Tailwind
colors: {
  custom: {
    50: '#a9a05e',
    500: '#817a17',
    950: '#000000',
  },
}
SCSS
$custom: #817a17;
$custom-light: #a9a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#817a17",
  "rgb": {
    "r": 129,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 56.038,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56838,
    "c": 0.11298,
    "h": 105.2
  },
  "luminance": 0.18648
}

Semantic roles & 50–950 ramp

primary
#817A17
secondary
#3E46B5
accent
#47ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817A17

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

Preview Lab → · Contrast checker → · Palette generator →

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