#817E15#817E15

#817E15 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.8% C 0.118 H 107.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#817E15
RGBrgb(129, 126, 21)
HSLhsl(58, 72%, 29%)
HSVhsv(58, 84%, 51%)
CMYKcmyk(0%, 2.3%, 83.7%, 49.4%)
CIE-LABlab(51.43, -10.89, 51.93)
CIE-LCHlch(51.43, 53.06, 101.84°)
OKLaboklab(57.76% -0.036 0.1121)
OKLCHoklch(57.76% 0.118 107.8)
XYZxyz(16.6502, 19.6436, 3.6239)
Luminance0.1964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E15 #151881
analogous
#814815 #817E15 #4E8115
triadic
#817E15 #15817E #7E1581
tetradic
#817E15 #158148 #151881 #81154E
square
#817E15 #158148 #151881 #81154E
split-complementary
#817E15 #154E81 #481581
monochromatic
#1A1A04 #4C4B0C #817E15 #B6B11E #DED933

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817E15#FFFFFF#000000##000000
##817E151.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)
#8B7C1F
Tritanopia (blue-blind)
#8B756B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e15;
/* rgb */ color: rgb(129, 126, 21);
/* oklch */ color: oklch(57.8% 0.118 107.8);
Tailwind
colors: {
  custom: {
    50: '#a9a35e',
    500: '#817e15',
    950: '#000000',
  },
}
SCSS
$custom: #817e15;
$custom-light: #a9a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#817e15",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 58.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57758,
    "c": 0.11777,
    "h": 107.8
  },
  "luminance": 0.19643
}

Semantic roles & 50–950 ramp

primary
#817E15
secondary
#3C3FB6
accent
#3EEF39
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817E15

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

Preview Lab → · Contrast checker → · Palette generator →

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