#817E2A#817E2A

#817E2A is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.105 H 107.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#817E2A
RGBrgb(129, 126, 42)
HSLhsl(58, 51%, 34%)
HSVhsv(58, 67%, 51%)
CMYKcmyk(0%, 2.3%, 67.4%, 49.4%)
CIE-LABlab(51.56, -9.87, 44.34)
CIE-LCHlch(51.56, 45.42, 102.55°)
OKLaboklab(57.9% -0.0311 0.1)
OKLCHoklch(57.9% 0.105 107.3)
XYZxyz(16.9326, 19.7565, 5.1115)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E2A #2A2D81
analogous
#81522A #817E2A #58812A
triadic
#817E2A #2A817E #7E2A81
tetradic
#817E2A #2A8152 #2A2D81 #812A58
square
#817E2A #2A8152 #2A2D81 #812A58
split-complementary
#817E2A #2A5881 #522A81
monochromatic
#25240C #53511B #817E2A #AFAB39 #CAC65C

Accessibility & contrast

On white

4.24
#817E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#817E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E2A
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E2A#FFFFFF#000000##000000
##817E2A1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791F
Deuteranopia (green-blind)
#8A7C2F
Tritanopia (blue-blind)
#8A766D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e2a;
/* rgb */ color: rgb(129, 126, 42);
/* oklch */ color: oklch(57.9% 0.105 107.3);
Tailwind
colors: {
  custom: {
    50: '#a8a368',
    500: '#817e2a',
    950: '#000000',
  },
}
SCSS
$custom: #817e2a;
$custom-light: #a8a368;
$custom-dark: #000000;
JSON
{
  "hex": "#817e2a",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 57.931,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57902,
    "c": 0.10472,
    "h": 107.3
  },
  "luminance": 0.19756
}

Semantic roles & 50–950 ramp

primary
#817E2A
secondary
#575AAF
accent
#52DA4D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #817E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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