#817B17#817B17

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

Color values

HEX#817B17
RGBrgb(129, 123, 23)
HSLhsl(57, 70%, 30%)
HSVhsv(57, 82%, 51%)
CMYKcmyk(0%, 4.7%, 82.2%, 49.4%)
CIE-LABlab(50.56, -9.17, 50.58)
CIE-LCHlch(50.56, 51.40, 100.28°)
OKLaboklab(57.07% -0.0311 0.1096)
OKLCHoklch(57.07% 0.114 105.8)
XYZxyz(16.2916, 18.8955, 3.5995)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817B17 #171D81
analogous
#814617 #817B17 #528117
triadic
#817B17 #17817B #7B1781
tetradic
#817B17 #178146 #171D81 #811752
square
#817B17 #178146 #171D81 #811752
split-complementary
#817B17 #175281 #461781
monochromatic
#1A1905 #4D490E #817B17 #B5AD20 #DBD237

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817B17#FFFFFF#000000##000000
##817B171.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)
#897A20
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817b17;
/* rgb */ color: rgb(129, 123, 23);
/* oklch */ color: oklch(57.1% 0.114 105.8);
Tailwind
colors: {
  custom: {
    50: '#a9a05e',
    500: '#817b17',
    950: '#000000',
  },
}
SCSS
$custom: #817b17;
$custom-light: #a9a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#817b17",
  "rgb": {
    "r": 129,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 56.604,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.11392,
    "h": 105.8
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

primary
#817B17
secondary
#3E45B5
accent
#45ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817B17

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

Preview Lab → · Contrast checker → · Palette generator →

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