#817C1D#817C1D

#817C1D is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.112 H 106.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#817C1D
RGBrgb(129, 124, 29)
HSLhsl(57, 63%, 31%)
HSVhsv(57, 78%, 51%)
CMYKcmyk(0%, 3.9%, 77.5%, 49.4%)
CIE-LABlab(50.89, -9.48, 48.87)
CIE-LCHlch(50.89, 49.78, 100.98°)
OKLaboklab(57.34% -0.0314 0.1072)
OKLCHoklch(57.34% 0.112 106.3)
XYZxyz(16.4834, 19.1717, 3.9944)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C1D #1D2281
analogous
#814A1D #817C1D #54811D
triadic
#817C1D #1D817C #7C1D81
tetradic
#817C1D #1D814A #1D2281 #811D54
square
#817C1D #1D814A #1D2281 #811D54
split-complementary
#817C1D #1D5481 #4A1D81
monochromatic
#1D1C07 #4F4C12 #817C1D #B3AC28 #D5CE44

Accessibility & contrast

On white

4.34
#817C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#817C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C1D
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C1D#FFFFFF#000000##000000
##817C1D1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877708
Deuteranopia (green-blind)
#897B24
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c1d;
/* rgb */ color: rgb(129, 124, 29);
/* oklch */ color: oklch(57.3% 0.112 106.3);
Tailwind
colors: {
  custom: {
    50: '#a9a161',
    500: '#817c1d',
    950: '#000000',
  },
}
SCSS
$custom: #817c1d;
$custom-light: #a9a161;
$custom-dark: #000000;
JSON
{
  "hex": "#817c1d",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 57,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57337,
    "c": 0.11166,
    "h": 106.3
  },
  "luminance": 0.19171
}

Semantic roles & 50–950 ramp

primary
#817C1D
secondary
#464BB4
accent
#4AE641
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #817C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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