#817E2D#817E2D

#817E2D is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.102 H 107.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#817E2D
RGBrgb(129, 126, 45)
HSLhsl(58, 48%, 34%)
HSVhsv(58, 65%, 51%)
CMYKcmyk(0%, 2.3%, 65.1%, 49.4%)
CIE-LABlab(51.59, -9.67, 43.02)
CIE-LCHlch(51.59, 44.10, 102.67°)
OKLaboklab(57.93% -0.0302 0.0977)
OKLCHoklch(57.93% 0.102 107.2)
XYZxyz(16.9883, 19.7788, 5.4049)
Luminance0.1978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E2D #2D3081
analogous
#81542D #817E2D #5A812D
triadic
#817E2D #2D817E #7E2D81
tetradic
#817E2D #2D8154 #2D3081 #812D5A
square
#817E2D #2D8154 #2D3081 #812D5A
split-complementary
#817E2D #2D5A81 #542D81
monochromatic
#26250D #54521D #817E2D #AEAA3D #C8C461

Accessibility & contrast

On white

4.24
#817E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#817E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E2D
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E2D#FFFFFF#000000##000000
##817E2D1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887923
Deuteranopia (green-blind)
#8A7C32
Tritanopia (blue-blind)
#8A766D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e2d;
/* rgb */ color: rgb(129, 126, 45);
/* oklch */ color: oklch(57.9% 0.102 107.2);
Tailwind
colors: {
  custom: {
    50: '#a8a36a',
    500: '#817e2d',
    950: '#000000',
  },
}
SCSS
$custom: #817e2d;
$custom-light: #a8a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#817e2d",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 57.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57931,
    "c": 0.10228,
    "h": 107.2
  },
  "luminance": 0.19778
}

Semantic roles & 50–950 ramp

primary
#817E2D
secondary
#5C5FAE
accent
#55D850
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #817E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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