#817C17#817C17

#817C17 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.3% C 0.115 H 106.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#817C17
RGBrgb(129, 124, 23)
HSLhsl(57, 70%, 30%)
HSVhsv(57, 82%, 51%)
CMYKcmyk(0%, 3.9%, 82.2%, 49.4%)
CIE-LABlab(50.86, -9.72, 50.83)
CIE-LCHlch(50.86, 51.76, 100.83°)
OKLaboklab(57.3% -0.0326 0.1102)
OKLCHoklch(57.3% 0.115 106.5)
XYZxyz(16.4163, 19.1449, 3.6411)
Luminance0.1914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C17 #171C81
analogous
#814717 #817C17 #518117
triadic
#817C17 #17817C #7C1781
tetradic
#817C17 #178147 #171C81 #811751
square
#817C17 #178147 #171C81 #811751
split-complementary
#817C17 #175181 #471781
monochromatic
#1A1905 #4D4A0E #817C17 #B5AE20 #DBD437

Accessibility & contrast

On white

4.35
#817C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#817C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C17
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C17#FFFFFF#000000##000000
##817C171.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c17;
/* rgb */ color: rgb(129, 124, 23);
/* oklch */ color: oklch(57.3% 0.115 106.5);
Tailwind
colors: {
  custom: {
    50: '#a9a15f',
    500: '#817c17',
    950: '#000000',
  },
}
SCSS
$custom: #817c17;
$custom-light: #a9a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#817c17",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 57.17,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57302,
    "c": 0.11488,
    "h": 106.5
  },
  "luminance": 0.19144
}

Semantic roles & 50–950 ramp

primary
#817C17
secondary
#3E44B5
accent
#44ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817C17

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

Preview Lab → · Contrast checker → · Palette generator →

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