#817C2B#817C2B

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

Color values

HEX#817C2B
RGBrgb(129, 124, 43)
HSLhsl(57, 50%, 34%)
HSVhsv(57, 67%, 51%)
CMYKcmyk(0%, 3.9%, 66.7%, 49.4%)
CIE-LABlab(50.99, -8.70, 43.29)
CIE-LCHlch(50.99, 44.16, 101.37°)
OKLaboklab(57.45% -0.0277 0.098)
OKLCHoklch(57.45% 0.102 105.8)
XYZxyz(16.6976, 19.2574, 5.1225)
Luminance0.1926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C2B #2B3081
analogous
#81512B #817C2B #5B812B
triadic
#817C2B #2B817C #7C2B81
tetradic
#817C2B #2B8151 #2B3081 #812B5B
square
#817C2B #2B8151 #2B3081 #812B5B
split-complementary
#817C2B #2B5B81 #512B81
monochromatic
#25240C #53501C #817C2B #AFA83A #C9C35D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817C2B#FFFFFF#000000##000000
##817C2B1.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)
#877721
Deuteranopia (green-blind)
#897B30
Tritanopia (blue-blind)
#8A746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c2b;
/* rgb */ color: rgb(129, 124, 43);
/* oklch */ color: oklch(57.4% 0.102 105.8);
Tailwind
colors: {
  custom: {
    50: '#a8a169',
    500: '#817c2b',
    950: '#000000',
  },
}
SCSS
$custom: #817c2b;
$custom-light: #a8a169;
$custom-dark: #000000;
JSON
{
  "hex": "#817c2b",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 56.512,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57448,
    "c": 0.10181,
    "h": 105.8
  },
  "luminance": 0.19257
}

Semantic roles & 50–950 ramp

primary
#817C2B
secondary
#595EAF
accent
#56DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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