#817D15#817D15

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

Color values

HEX#817D15
RGBrgb(129, 125, 21)
HSLhsl(58, 72%, 29%)
HSVhsv(58, 84%, 51%)
CMYKcmyk(0%, 3.1%, 83.7%, 49.4%)
CIE-LABlab(51.14, -10.34, 51.68)
CIE-LCHlch(51.14, 52.70, 101.32°)
OKLaboklab(57.53% -0.0345 0.1116)
OKLCHoklch(57.53% 0.117 107.2)
XYZxyz(16.5229, 19.3891, 3.5814)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D15 #151981
analogous
#814715 #817D15 #4F8115
triadic
#817D15 #15817D #7D1581
tetradic
#817D15 #158147 #151981 #81154F
square
#817D15 #158147 #151981 #81154F
split-complementary
#817D15 #154F81 #471581
monochromatic
#1A1A04 #4C4A0C #817D15 #B6B01E #DED733

Accessibility & contrast

On white

4.31
#817D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##817D15#FFFFFF#000000##000000
##817D151.004.314.884.88
#FFFFFF4.311.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: #817d15;
/* rgb */ color: rgb(129, 125, 21);
/* oklch */ color: oklch(57.5% 0.117 107.2);
Tailwind
colors: {
  custom: {
    50: '#a9a25e',
    500: '#817d15',
    950: '#000000',
  },
}
SCSS
$custom: #817d15;
$custom-light: #a9a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#817d15",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 57.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57525,
    "c": 0.11679,
    "h": 107.2
  },
  "luminance": 0.19389
}

Semantic roles & 50–950 ramp

primary
#817D15
secondary
#3C40B6
accent
#40EF39
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D15

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

Preview Lab → · Contrast checker → · Palette generator →

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