#817B15#817B15

#817B15 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.1% C 0.115 H 105.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#817B15
RGBrgb(129, 123, 21)
HSLhsl(57, 72%, 29%)
HSVhsv(57, 84%, 51%)
CMYKcmyk(0%, 4.7%, 83.7%, 49.4%)
CIE-LABlab(50.56, -9.24, 51.17)
CIE-LCHlch(50.56, 52.00, 100.24°)
OKLaboklab(57.06% -0.0314 0.1105)
OKLCHoklch(57.06% 0.115 105.9)
XYZxyz(16.2723, 18.8878, 3.4979)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817B15 #151B81
analogous
#814515 #817B15 #518115
triadic
#817B15 #15817B #7B1581
tetradic
#817B15 #158145 #151B81 #811551
square
#817B15 #158145 #151B81 #811551
split-complementary
#817B15 #155181 #451581
monochromatic
#1A1904 #4C490C #817B15 #B6AD1E #DED433

Accessibility & contrast

On white

4.40
#817B15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#817B15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817B15
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817B15#FFFFFF#000000##000000
##817B151.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#897A1E
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817b15;
/* rgb */ color: rgb(129, 123, 21);
/* oklch */ color: oklch(57.1% 0.115 105.9);
Tailwind
colors: {
  custom: {
    50: '#a9a05e',
    500: '#817b15',
    950: '#000000',
  },
}
SCSS
$custom: #817b15;
$custom-light: #a9a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#817b15",
  "rgb": {
    "r": 129,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 56.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5706,
    "c": 0.11487,
    "h": 105.9
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#817B15
secondary
#3C43B6
accent
#43EF39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817B15

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

Preview Lab → · Contrast checker → · Palette generator →

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