#817F2E#817F2E

#817F2E is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.2% C 0.103 H 107.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#817F2E
RGBrgb(129, 127, 46)
HSLhsl(59, 47%, 34%)
HSVhsv(59, 64%, 51%)
CMYKcmyk(0%, 1.6%, 64.3%, 49.4%)
CIE-LABlab(51.89, -10.15, 42.89)
CIE-LCHlch(51.89, 44.07, 103.31°)
OKLaboklab(58.17% -0.0314 0.0976)
OKLCHoklch(58.17% 0.103 107.9)
XYZxyz(17.1363, 20.0436, 5.5504)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F2E #2E3081
analogous
#81562E #817F2E #5A812E
triadic
#817F2E #2E817F #7F2E81
tetradic
#817F2E #2E8156 #2E3081 #812E5A
square
#817F2E #2E8156 #2E3081 #812E5A
split-complementary
#817F2E #2E5A81 #562E81
monochromatic
#27260E #54531E #817F2E #AEAB3E #C7C562

Accessibility & contrast

On white

4.19
#817F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#817F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817F2E
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817F2E#FFFFFF#000000##000000
##817F2E1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A24
Deuteranopia (green-blind)
#8B7D33
Tritanopia (blue-blind)
#8A776E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #817f2e;
/* rgb */ color: rgb(129, 127, 46);
/* oklch */ color: oklch(58.2% 0.103 107.9);
Tailwind
colors: {
  custom: {
    50: '#a8a36b',
    500: '#817f2e',
    950: '#000000',
  },
}
SCSS
$custom: #817f2e;
$custom-light: #a8a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#817f2e",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 58.554,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58173,
    "c": 0.10254,
    "h": 107.9
  },
  "luminance": 0.20043
}

Semantic roles & 50–950 ramp

primary
#817F2E
secondary
#5D5FAE
accent
#54D751
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #817F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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