#817E17#817E17

#817E17 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.117 H 107.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#817E17
RGBrgb(129, 126, 23)
HSLhsl(58, 70%, 30%)
HSVhsv(58, 82%, 51%)
CMYKcmyk(0%, 2.3%, 82.2%, 49.4%)
CIE-LABlab(51.44, -10.82, 51.35)
CIE-LCHlch(51.44, 52.48, 101.90°)
OKLaboklab(57.77% -0.0357 0.1113)
OKLCHoklch(57.77% 0.117 107.8)
XYZxyz(16.6695, 19.6513, 3.7254)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E17 #171A81
analogous
#814917 #817E17 #4F8117
triadic
#817E17 #17817E #7E1781
tetradic
#817E17 #178149 #171A81 #81174F
square
#817E17 #178149 #171A81 #81174F
split-complementary
#817E17 #174F81 #491781
monochromatic
#1A1905 #4D4B0E #817E17 #B5B120 #DBD737

Accessibility & contrast

On white

4.26
#817E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#817E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E17
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E17#FFFFFF#000000##000000
##817E171.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#8B756B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e17;
/* rgb */ color: rgb(129, 126, 23);
/* oklch */ color: oklch(57.8% 0.117 107.8);
Tailwind
colors: {
  custom: {
    50: '#a9a35f',
    500: '#817e17',
    950: '#000000',
  },
}
SCSS
$custom: #817e17;
$custom-light: #a9a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#817e17",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 58.302,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57768,
    "c": 0.11684,
    "h": 107.8
  },
  "luminance": 0.19651
}

Semantic roles & 50–950 ramp

primary
#817E17
secondary
#3E42B5
accent
#40ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817E17

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

Preview Lab → · Contrast checker → · Palette generator →

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