#817C1A#817C1A

#817C1A is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.113 H 106.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#817C1A
RGBrgb(129, 124, 26)
HSLhsl(57, 66%, 30%)
HSVhsv(57, 80%, 51%)
CMYKcmyk(0%, 3.9%, 79.8%, 49.4%)
CIE-LABlab(50.87, -9.61, 49.89)
CIE-LCHlch(50.87, 50.80, 100.90°)
OKLaboklab(57.32% -0.032 0.1087)
OKLCHoklch(57.32% 0.113 106.4)
XYZxyz(16.4481, 19.1576, 3.8085)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C1A #1A1F81
analogous
#81481A #817C1A #53811A
triadic
#817C1A #1A817C #7C1A81
tetradic
#817C1A #1A8148 #1A1F81 #811A53
square
#817C1A #1A8148 #1A1F81 #811A53
split-complementary
#817C1A #1A5381 #481A81
monochromatic
#1B1A05 #4E4B10 #817C1A #B4AD24 #D8D03D

Accessibility & contrast

On white

4.35
#817C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#817C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C1A
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C1A#FFFFFF#000000##000000
##817C1A1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c1a;
/* rgb */ color: rgb(129, 124, 26);
/* oklch */ color: oklch(57.3% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#a9a160',
    500: '#817c1a',
    950: '#000000',
  },
}
SCSS
$custom: #817c1a;
$custom-light: #a9a160;
$custom-dark: #000000;
JSON
{
  "hex": "#817c1a",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 57.087,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57318,
    "c": 0.11334,
    "h": 106.4
  },
  "luminance": 0.19157
}

Semantic roles & 50–950 ramp

primary
#817C1A
secondary
#4248B5
accent
#47E93E
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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