#817C2E#817C2E

#817C2E is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.5% C 0.099 H 105.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#817C2E
RGBrgb(129, 124, 46)
HSLhsl(56, 47%, 34%)
HSVhsv(56, 64%, 51%)
CMYKcmyk(0%, 3.9%, 64.3%, 49.4%)
CIE-LABlab(51.01, -8.50, 41.95)
CIE-LCHlch(51.01, 42.81, 101.45°)
OKLaboklab(57.48% -0.0268 0.0956)
OKLCHoklch(57.48% 0.099 105.6)
XYZxyz(16.7546, 19.2803, 5.4231)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C2E #2E3381
analogous
#81532E #817C2E #5D812E
triadic
#817C2E #2E817C #7C2E81
tetradic
#817C2E #2E8153 #2E3381 #812E5D
square
#817C2E #2E8153 #2E3381 #812E5D
split-complementary
#817C2E #2E5D81 #532E81
monochromatic
#27250E #54511E #817C2E #AEA73E #C7C162

Accessibility & contrast

On white

4.32
#817C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#817C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C2E
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C2E#FFFFFF#000000##000000
##817C2E1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#867825
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#8A746C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c2e;
/* rgb */ color: rgb(129, 124, 46);
/* oklch */ color: oklch(57.5% 0.099 105.6);
Tailwind
colors: {
  custom: {
    50: '#a8a16b',
    500: '#817c2e',
    950: '#000000',
  },
}
SCSS
$custom: #817c2e;
$custom-light: #a8a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#817c2e",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 56.386,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57477,
    "c": 0.09929,
    "h": 105.6
  },
  "luminance": 0.1928
}

Semantic roles & 50–950 ramp

primary
#817C2E
secondary
#5D62AE
accent
#59D751
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #817C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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