#817E1B#817E1B

#817E1B is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.115 H 107.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#817E1B
RGBrgb(129, 126, 27)
HSLhsl(58, 65%, 31%)
HSVhsv(58, 79%, 51%)
CMYKcmyk(0%, 2.3%, 79.1%, 49.4%)
CIE-LABlab(51.46, -10.66, 50.09)
CIE-LCHlch(51.46, 51.21, 102.02°)
OKLaboklab(57.79% -0.0349 0.1094)
OKLCHoklch(57.79% 0.115 107.7)
XYZxyz(16.7126, 19.6685, 3.9528)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E1B #1B1E81
analogous
#814B1B #817E1B #51811B
triadic
#817E1B #1B817E #7E1B81
tetradic
#817E1B #1B814B #1B1E81 #811B51
square
#817E1B #1B814B #1B1E81 #811B51
split-complementary
#817E1B #1B5181 #4B1B81
monochromatic
#1C1B06 #4E4D10 #817E1B #B4AF26 #D7D23F

Accessibility & contrast

On white

4.26
#817E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#817E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E1B
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E1B#FFFFFF#000000##000000
##817E1B1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897902
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#8B756C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e1b;
/* rgb */ color: rgb(129, 126, 27);
/* oklch */ color: oklch(57.8% 0.115 107.7);
Tailwind
colors: {
  custom: {
    50: '#a9a361',
    500: '#817e1b',
    950: '#000000',
  },
}
SCSS
$custom: #817e1b;
$custom-light: #a9a361;
$custom-dark: #000000;
JSON
{
  "hex": "#817e1b",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 58.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5779,
    "c": 0.11478,
    "h": 107.7
  },
  "luminance": 0.19668
}

Semantic roles & 50–950 ramp

primary
#817E1B
secondary
#4347B5
accent
#44E83F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #817E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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