#817D1B#817D1B

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

Color values

HEX#817D1B
RGBrgb(129, 125, 27)
HSLhsl(58, 65%, 31%)
HSVhsv(58, 79%, 51%)
CMYKcmyk(0%, 3.1%, 79.1%, 49.4%)
CIE-LABlab(51.17, -10.11, 49.82)
CIE-LCHlch(51.17, 50.84, 101.48°)
OKLaboklab(57.56% -0.0334 0.1088)
OKLCHoklch(57.56% 0.114 107)
XYZxyz(16.5854, 19.4141, 3.9103)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D1B #1B1F81
analogous
#814A1B #817D1B #52811B
triadic
#817D1B #1B817D #7D1B81
tetradic
#817D1B #1B814A #1B1F81 #811B52
square
#817D1B #1B814A #1B1F81 #811B52
split-complementary
#817D1B #1B5281 #4A1B81
monochromatic
#1C1B06 #4E4C10 #817D1B #B4AE26 #D7D13F

Accessibility & contrast

On white

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

On black

4.88
#817D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D1B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D1B#FFFFFF#000000##000000
##817D1B1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887803
Deuteranopia (green-blind)
#8A7C23
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d1b;
/* rgb */ color: rgb(129, 125, 27);
/* oklch */ color: oklch(57.6% 0.114 107.0);
Tailwind
colors: {
  custom: {
    50: '#a9a260',
    500: '#817d1b',
    950: '#000000',
  },
}
SCSS
$custom: #817d1b;
$custom-light: #a9a260;
$custom-dark: #000000;
JSON
{
  "hex": "#817d1b",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 57.647,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57557,
    "c": 0.11378,
    "h": 107
  },
  "luminance": 0.19413
}

Semantic roles & 50–950 ramp

primary
#817D1B
secondary
#4348B5
accent
#46E83F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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