#817A15#817A15

#817A15 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.8% C 0.114 H 105.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#817A15
RGBrgb(129, 122, 21)
HSLhsl(56, 72%, 29%)
HSVhsv(56, 84%, 51%)
CMYKcmyk(0%, 5.4%, 83.7%, 49.4%)
CIE-LABlab(50.26, -8.69, 50.92)
CIE-LCHlch(50.26, 51.66, 99.69°)
OKLaboklab(56.83% -0.0299 0.1099)
OKLCHoklch(56.83% 0.114 105.2)
XYZxyz(16.1489, 18.6410, 3.4568)
Luminance0.1864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817A15 #151C81
analogous
#814415 #817A15 #528115
triadic
#817A15 #15817A #7A1581
tetradic
#817A15 #158144 #151C81 #811552
square
#817A15 #158144 #151C81 #811552
split-complementary
#817A15 #155281 #441581
monochromatic
#1A1904 #4C480C #817A15 #B6AC1E #DED333

Accessibility & contrast

On white

4.44
#817A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#817A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817A15
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817A15#FFFFFF#000000##000000
##817A151.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#88791E
Tritanopia (blue-blind)
#8B7168
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817a15;
/* rgb */ color: rgb(129, 122, 21);
/* oklch */ color: oklch(56.8% 0.114 105.2);
Tailwind
colors: {
  custom: {
    50: '#a9a05d',
    500: '#817a15',
    950: '#000000',
  },
}
SCSS
$custom: #817a15;
$custom-light: #a9a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#817a15",
  "rgb": {
    "r": 129,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 56.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56828,
    "c": 0.11394,
    "h": 105.2
  },
  "luminance": 0.1864
}

Semantic roles & 50–950 ramp

primary
#817A15
secondary
#3C44B6
accent
#45EF39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817A15

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

Preview Lab → · Contrast checker → · Palette generator →

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