#817C2A#817C2A

#817C2A is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.103 H 105.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#817C2A
RGBrgb(129, 124, 42)
HSLhsl(57, 51%, 34%)
HSVhsv(57, 67%, 51%)
CMYKcmyk(0%, 3.9%, 67.4%, 49.4%)
CIE-LABlab(50.98, -8.77, 43.73)
CIE-LCHlch(50.98, 44.60, 101.34°)
OKLaboklab(57.44% -0.028 0.0987)
OKLCHoklch(57.44% 0.103 105.8)
XYZxyz(16.6794, 19.2502, 5.0271)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C2A #2A2F81
analogous
#81502A #817C2A #5A812A
triadic
#817C2A #2A817C #7C2A81
tetradic
#817C2A #2A8150 #2A2F81 #812A5A
square
#817C2A #2A8150 #2A2F81 #812A5A
split-complementary
#817C2A #2A5A81 #502A81
monochromatic
#25230C #53501B #817C2A #AFA839 #CAC35C

Accessibility & contrast

On white

4.33
#817C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#817C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C2A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C2A#FFFFFF#000000##000000
##817C2A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87771F
Deuteranopia (green-blind)
#897B2F
Tritanopia (blue-blind)
#8A746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c2a;
/* rgb */ color: rgb(129, 124, 42);
/* oklch */ color: oklch(57.4% 0.103 105.8);
Tailwind
colors: {
  custom: {
    50: '#a8a168',
    500: '#817c2a',
    950: '#000000',
  },
}
SCSS
$custom: #817c2a;
$custom-light: #a8a168;
$custom-dark: #000000;
JSON
{
  "hex": "#817c2a",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 56.552,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57438,
    "c": 0.10262,
    "h": 105.8
  },
  "luminance": 0.1925
}

Semantic roles & 50–950 ramp

primary
#817C2A
secondary
#575CAF
accent
#56DA4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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