#817D1F#817D1F

#817D1F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.6% C 0.111 H 106.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#817D1F
RGBrgb(129, 125, 31)
HSLhsl(58, 61%, 31%)
HSVhsv(58, 76%, 51%)
CMYKcmyk(0%, 3.1%, 76%, 49.4%)
CIE-LABlab(51.19, -9.93, 48.43)
CIE-LCHlch(51.19, 49.44, 101.59°)
OKLaboklab(57.58% -0.0325 0.1066)
OKLCHoklch(57.58% 0.111 106.9)
XYZxyz(16.6349, 19.4339, 4.1709)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D1F #1F2381
analogous
#814C1F #817D1F #54811F
triadic
#817D1F #1F817D #7D1F81
tetradic
#817D1F #1F814C #1F2381 #811F54
square
#817D1F #1F814C #1F2381 #811F54
split-complementary
#817D1F #1F5481 #4C1F81
monochromatic
#1E1D07 #504D13 #817D1F #B2AD2B #D3CD47

Accessibility & contrast

On white

4.30
#817D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#817D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D1F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D1F#FFFFFF#000000##000000
##817D1F1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8A7C26
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d1f;
/* rgb */ color: rgb(129, 125, 31);
/* oklch */ color: oklch(57.6% 0.111 106.9);
Tailwind
colors: {
  custom: {
    50: '#a9a262',
    500: '#817d1f',
    950: '#000000',
  },
}
SCSS
$custom: #817d1f;
$custom-light: #a9a262;
$custom-dark: #000000;
JSON
{
  "hex": "#817d1f",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 57.551,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57582,
    "c": 0.11145,
    "h": 106.9
  },
  "luminance": 0.19433
}

Semantic roles & 50–950 ramp

primary
#817D1F
secondary
#484CB4
accent
#4AE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #817D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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