#817F15#817F15

#817F15 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.119 H 108.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#817F15
RGBrgb(129, 127, 21)
HSLhsl(59, 72%, 29%)
HSVhsv(59, 84%, 51%)
CMYKcmyk(0%, 1.6%, 83.7%, 49.4%)
CIE-LABlab(51.72, -11.43, 52.18)
CIE-LCHlch(51.72, 53.42, 102.36°)
OKLaboklab(57.99% -0.0375 0.1127)
OKLCHoklch(57.99% 0.119 108.4)
XYZxyz(16.7787, 19.9006, 3.6667)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F15 #151781
analogous
#814915 #817F15 #4D8115
triadic
#817F15 #15817F #7F1581
tetradic
#817F15 #158149 #151781 #81154D
square
#817F15 #158149 #151781 #81154D
split-complementary
#817F15 #154D81 #491581
monochromatic
#1A1A04 #4C4B0C #817F15 #B6B31E #DEDB33

Accessibility & contrast

On white

4.22
#817F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#817F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817F15
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817F15#FFFFFF#000000##000000
##817F151.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#8B766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817f15;
/* rgb */ color: rgb(129, 127, 21);
/* oklch */ color: oklch(58.0% 0.119 108.4);
Tailwind
colors: {
  custom: {
    50: '#a9a35e',
    500: '#817f15',
    950: '#000000',
  },
}
SCSS
$custom: #817f15;
$custom-light: #a9a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#817f15",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 58.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57992,
    "c": 0.11875,
    "h": 108.4
  },
  "luminance": 0.199
}

Semantic roles & 50–950 ramp

primary
#817F15
secondary
#3C3EB6
accent
#3CEF39
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #817F15

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

Preview Lab → · Contrast checker → · Palette generator →

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