#817D16#817D16

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

Color values

HEX#817D16
RGBrgb(129, 125, 22)
HSLhsl(58, 71%, 30%)
HSVhsv(58, 83%, 51%)
CMYKcmyk(0%, 3.1%, 82.9%, 49.4%)
CIE-LABlab(51.14, -10.31, 51.39)
CIE-LCHlch(51.14, 52.41, 101.34°)
OKLaboklab(57.53% -0.0343 0.1112)
OKLCHoklch(57.53% 0.116 107.2)
XYZxyz(16.5324, 19.3929, 3.6313)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D16 #161A81
analogous
#814816 #817D16 #508116
triadic
#817D16 #16817D #7D1681
tetradic
#817D16 #168148 #161A81 #811650
square
#817D16 #168148 #161A81 #811650
split-complementary
#817D16 #165081 #481681
monochromatic
#1A1904 #4D4A0D #817D16 #B5B01F #DDD635

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817D16#FFFFFF#000000##000000
##817D161.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)
#8A7B1F
Tritanopia (blue-blind)
#8B746A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d16;
/* rgb */ color: rgb(129, 125, 22);
/* oklch */ color: oklch(57.5% 0.116 107.2);
Tailwind
colors: {
  custom: {
    50: '#a9a25e',
    500: '#817d16',
    950: '#000000',
  },
}
SCSS
$custom: #817d16;
$custom-light: #a9a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#817d16",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 57.757,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5753,
    "c": 0.11633,
    "h": 107.2
  },
  "luminance": 0.19392
}

Semantic roles & 50–950 ramp

primary
#817D16
secondary
#3D42B6
accent
#41EE3A
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D16

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

Preview Lab → · Contrast checker → · Palette generator →

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