#817C1B#817C1B

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

Color values

HEX#817C1B
RGBrgb(129, 124, 27)
HSLhsl(57, 65%, 31%)
HSVhsv(57, 79%, 51%)
CMYKcmyk(0%, 3.9%, 79.1%, 49.4%)
CIE-LABlab(50.88, -9.57, 49.56)
CIE-LCHlch(50.88, 50.47, 100.93°)
OKLaboklab(57.32% -0.0318 0.1082)
OKLCHoklch(57.32% 0.113 106.4)
XYZxyz(16.4594, 19.1622, 3.8684)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C1B #1B2081
analogous
#81491B #817C1B #53811B
triadic
#817C1B #1B817C #7C1B81
tetradic
#817C1B #1B8149 #1B2081 #811B53
square
#817C1B #1B8149 #1B2081 #811B53
split-complementary
#817C1B #1B5381 #491B81
monochromatic
#1C1B06 #4E4B10 #817C1B #B4AD26 #D7CF3F

Accessibility & contrast

On white

4.35
#817C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##817C1B#FFFFFF#000000##000000
##817C1B1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #817c1b;
/* rgb */ color: rgb(129, 124, 27);
/* oklch */ color: oklch(57.3% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#a9a160',
    500: '#817c1b',
    950: '#000000',
  },
}
SCSS
$custom: #817c1b;
$custom-light: #a9a160;
$custom-dark: #000000;
JSON
{
  "hex": "#817c1b",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 57.059,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57324,
    "c": 0.1128,
    "h": 106.4
  },
  "luminance": 0.19162
}

Semantic roles & 50–950 ramp

primary
#817C1B
secondary
#4349B5
accent
#48E83F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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