#817F2D#817F2D

#817F2D is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.2% C 0.103 H 107.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#817F2D
RGBrgb(129, 127, 45)
HSLhsl(59, 48%, 34%)
HSVhsv(59, 65%, 51%)
CMYKcmyk(0%, 1.6%, 65.1%, 49.4%)
CIE-LABlab(51.88, -10.22, 43.33)
CIE-LCHlch(51.88, 44.52, 103.27°)
OKLaboklab(58.16% -0.0317 0.0984)
OKLCHoklch(58.16% 0.103 107.9)
XYZxyz(17.1169, 20.0359, 5.4478)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F2D #2D2F81
analogous
#81552D #817F2D #59812D
triadic
#817F2D #2D817F #7F2D81
tetradic
#817F2D #2D8155 #2D2F81 #812D59
square
#817F2D #2D8155 #2D2F81 #812D59
split-complementary
#817F2D #2D5981 #552D81
monochromatic
#26260D #54521D #817F2D #AEAC3D #C8C561

Accessibility & contrast

On white

4.19
#817F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#817F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817F2D
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817F2D#FFFFFF#000000##000000
##817F2D1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A23
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#8A776E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #817f2d;
/* rgb */ color: rgb(129, 127, 45);
/* oklch */ color: oklch(58.2% 0.103 107.9);
Tailwind
colors: {
  custom: {
    50: '#a8a36a',
    500: '#817f2d',
    950: '#000000',
  },
}
SCSS
$custom: #817f2d;
$custom-light: #a8a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#817f2d",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 58.571,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.10338,
    "h": 107.9
  },
  "luminance": 0.20035
}

Semantic roles & 50–950 ramp

primary
#817F2D
secondary
#5C5EAE
accent
#53D850
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #817F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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