#817E1A#817E1A

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

Color values

HEX#817E1A
RGBrgb(129, 126, 26)
HSLhsl(58, 66%, 30%)
HSVhsv(58, 80%, 51%)
CMYKcmyk(0%, 2.3%, 79.8%, 49.4%)
CIE-LABlab(51.46, -10.70, 50.41)
CIE-LCHlch(51.46, 51.54, 101.99°)
OKLaboklab(57.78% -0.0351 0.1099)
OKLCHoklch(57.78% 0.115 107.7)
XYZxyz(16.7012, 19.6640, 3.8929)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E1A #1A1D81
analogous
#814A1A #817E1A #51811A
triadic
#817E1A #1A817E #7E1A81
tetradic
#817E1A #1A814A #1A1D81 #811A51
square
#817E1A #1A814A #1A1D81 #811A51
split-complementary
#817E1A #1A5181 #4A1A81
monochromatic
#1B1A05 #4E4C10 #817E1A #B4B024 #D8D33D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #817e1a;
/* rgb */ color: rgb(129, 126, 26);
/* oklch */ color: oklch(57.8% 0.115 107.7);
Tailwind
colors: {
  custom: {
    50: '#a9a360',
    500: '#817e1a',
    950: '#000000',
  },
}
SCSS
$custom: #817e1a;
$custom-light: #a9a360;
$custom-dark: #000000;
JSON
{
  "hex": "#817e1a",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 58.252,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57784,
    "c": 0.11532,
    "h": 107.7
  },
  "luminance": 0.19663
}

Semantic roles & 50–950 ramp

primary
#817E1A
secondary
#4245B5
accent
#43E93E
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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