#817E16#817E16

#817E16 is a mid, moderate yellow. Relative luminance 0.196; 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#817E16
RGBrgb(129, 126, 22)
HSLhsl(58, 71%, 30%)
HSVhsv(58, 83%, 51%)
CMYKcmyk(0%, 2.3%, 82.9%, 49.4%)
CIE-LABlab(51.44, -10.85, 51.64)
CIE-LCHlch(51.44, 52.77, 101.87°)
OKLaboklab(57.76% -0.0358 0.1117)
OKLCHoklch(57.76% 0.117 107.8)
XYZxyz(16.6596, 19.6473, 3.6737)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E16 #161981
analogous
#814916 #817E16 #4E8116
triadic
#817E16 #16817E #7E1681
tetradic
#817E16 #168149 #161981 #81164E
square
#817E16 #168149 #161981 #81164E
split-complementary
#817E16 #164E81 #491681
monochromatic
#1A1A04 #4D4B0D #817E16 #B5B11F #DDD835

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817E16#FFFFFF#000000##000000
##817E161.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: #817e16;
/* rgb */ color: rgb(129, 126, 22);
/* oklch */ color: oklch(57.8% 0.117 107.8);
Tailwind
colors: {
  custom: {
    50: '#a9a35e',
    500: '#817e16',
    950: '#000000',
  },
}
SCSS
$custom: #817e16;
$custom-light: #a9a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#817e16",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 58.318,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57763,
    "c": 0.11731,
    "h": 107.8
  },
  "luminance": 0.19647
}

Semantic roles & 50–950 ramp

primary
#817E16
secondary
#3D41B6
accent
#3FEE3A
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817E16

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

Preview Lab → · Contrast checker → · Palette generator →

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