#817A2A#817A2A

#817A2A is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.0% C 0.101 H 104.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#817A2A
RGBrgb(129, 122, 42)
HSLhsl(55, 51%, 34%)
HSVhsv(55, 67%, 51%)
CMYKcmyk(0%, 5.4%, 67.4%, 49.4%)
CIE-LABlab(50.40, -7.66, 43.13)
CIE-LCHlch(50.40, 43.80, 100.08°)
OKLaboklab(56.98% -0.0249 0.0975)
OKLCHoklch(56.98% 0.101 104.3)
XYZxyz(16.4313, 18.7540, 4.9444)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817A2A #2A3181
analogous
#814E2A #817A2A #5C812A
triadic
#817A2A #2A817A #7A2A81
tetradic
#817A2A #2A814E #2A3181 #812A5C
square
#817A2A #2A814E #2A3181 #812A5C
split-complementary
#817A2A #2A5C81 #4E2A81
monochromatic
#25230C #534E1B #817A2A #AFA639 #CAC15C

Accessibility & contrast

On white

4.42
#817A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#817A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817A2A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817A2A#FFFFFF#000000##000000
##817A2A1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857620
Deuteranopia (green-blind)
#877A2F
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817a2a;
/* rgb */ color: rgb(129, 122, 42);
/* oklch */ color: oklch(57.0% 0.101 104.3);
Tailwind
colors: {
  custom: {
    50: '#a8a068',
    500: '#817a2a',
    950: '#000000',
  },
}
SCSS
$custom: #817a2a;
$custom-light: #a8a068;
$custom-dark: #000000;
JSON
{
  "hex": "#817a2a",
  "rgb": {
    "r": 129,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 55.172,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56976,
    "c": 0.10057,
    "h": 104.3
  },
  "luminance": 0.18753
}

Semantic roles & 50–950 ramp

primary
#817A2A
secondary
#575EAF
accent
#59DA4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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