#817E20#817E20

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

Color values

HEX#817E20
RGBrgb(129, 126, 32)
HSLhsl(58, 60%, 32%)
HSVhsv(58, 75%, 51%)
CMYKcmyk(0%, 2.3%, 75.2%, 49.4%)
CIE-LABlab(51.49, -10.43, 48.34)
CIE-LCHlch(51.49, 49.45, 102.18°)
OKLaboklab(57.82% -0.0338 0.1066)
OKLCHoklch(57.82% 0.112 107.6)
XYZxyz(16.7755, 19.6937, 4.2838)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E20 #202381
analogous
#814E20 #817E20 #548120
triadic
#817E20 #20817E #7E2081
tetradic
#817E20 #20814E #202381 #812054
square
#817E20 #20814E #202381 #812054
split-complementary
#817E20 #205481 #4E2081
monochromatic
#1F1E08 #504E14 #817E20 #B2AE2C #D2CE49

Accessibility & contrast

On white

4.25
#817E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#817E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E20
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E20#FFFFFF#000000##000000
##817E201.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790E
Deuteranopia (green-blind)
#8B7C27
Tritanopia (blue-blind)
#8B756C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e20;
/* rgb */ color: rgb(129, 126, 32);
/* oklch */ color: oklch(57.8% 0.112 107.6);
Tailwind
colors: {
  custom: {
    50: '#a9a363',
    500: '#817e20',
    950: '#000000',
  },
}
SCSS
$custom: #817e20;
$custom-light: #a9a363;
$custom-dark: #000000;
JSON
{
  "hex": "#817e20",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 58.144,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.11184,
    "h": 107.6
  },
  "luminance": 0.19693
}

Semantic roles & 50–950 ramp

primary
#817E20
secondary
#494CB4
accent
#49E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #817E20

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

Preview Lab → · Contrast checker → · Palette generator →

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