#817D17#817D17

#817D17 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.116 H 107.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#817D17
RGBrgb(129, 125, 23)
HSLhsl(58, 70%, 30%)
HSVhsv(58, 82%, 51%)
CMYKcmyk(0%, 3.1%, 82.2%, 49.4%)
CIE-LABlab(51.15, -10.27, 51.09)
CIE-LCHlch(51.15, 52.11, 101.37°)
OKLaboklab(57.54% -0.0341 0.1107)
OKLCHoklch(57.54% 0.116 107.1)
XYZxyz(16.5422, 19.3968, 3.6830)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D17 #171B81
analogous
#814817 #817D17 #508117
triadic
#817D17 #17817D #7D1781
tetradic
#817D17 #178148 #171B81 #811750
square
#817D17 #178148 #171B81 #811750
split-complementary
#817D17 #175081 #481781
monochromatic
#1A1905 #4D4B0E #817D17 #B5AF20 #DBD537

Accessibility & contrast

On white

4.30
#817D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#817D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D17
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D17#FFFFFF#000000##000000
##817D171.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#8B746A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d17;
/* rgb */ color: rgb(129, 125, 23);
/* oklch */ color: oklch(57.5% 0.116 107.1);
Tailwind
colors: {
  custom: {
    50: '#a9a25f',
    500: '#817d17',
    950: '#000000',
  },
}
SCSS
$custom: #817d17;
$custom-light: #a9a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#817d17",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 57.736,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57535,
    "c": 0.11586,
    "h": 107.1
  },
  "luminance": 0.19396
}

Semantic roles & 50–950 ramp

primary
#817D17
secondary
#3E43B5
accent
#42ED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D17

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

Preview Lab → · Contrast checker → · Palette generator →

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