#817A1F#817A1F

#817A1F is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.108 H 104.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#817A1F
RGBrgb(129, 122, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 76%, 51%)
CMYKcmyk(0%, 5.4%, 76%, 49.4%)
CIE-LABlab(50.32, -8.28, 47.60)
CIE-LCHlch(50.32, 48.31, 99.87°)
OKLaboklab(56.89% -0.0278 0.1049)
OKLCHoklch(56.89% 0.108 104.9)
XYZxyz(16.2608, 18.6858, 4.0462)
Luminance0.1868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817A1F #1F2681
analogous
#81491F #817A1F #57811F
triadic
#817A1F #1F817A #7A1F81
tetradic
#817A1F #1F8149 #1F2681 #811F57
square
#817A1F #1F8149 #1F2681 #811F57
split-complementary
#817A1F #1F5781 #491F81
monochromatic
#1E1D07 #504B13 #817A1F #B2A92B #D3C947

Accessibility & contrast

On white

4.43
#817A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#817A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817A1F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817A1F#FFFFFF#000000##000000
##817A1F1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#8B7168
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817a1f;
/* rgb */ color: rgb(129, 122, 31);
/* oklch */ color: oklch(56.9% 0.108 104.9);
Tailwind
colors: {
  custom: {
    50: '#a9a062',
    500: '#817a1f',
    950: '#000000',
  },
}
SCSS
$custom: #817a1f;
$custom-light: #a9a062;
$custom-dark: #000000;
JSON
{
  "hex": "#817a1f",
  "rgb": {
    "r": 129,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 55.714,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56887,
    "c": 0.10849,
    "h": 104.9
  },
  "luminance": 0.18685
}

Semantic roles & 50–950 ramp

primary
#817A1F
secondary
#4850B4
accent
#4FE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #817A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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