#817C28#817C28

#817C28 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.4% C 0.104 H 105.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#817C28
RGBrgb(129, 124, 40)
HSLhsl(57, 53%, 33%)
HSVhsv(57, 69%, 51%)
CMYKcmyk(0%, 3.9%, 69%, 49.4%)
CIE-LABlab(50.96, -8.90, 44.59)
CIE-LCHlch(50.96, 45.47, 101.28°)
OKLaboklab(57.42% -0.0286 0.1002)
OKLCHoklch(57.42% 0.104 105.9)
XYZxyz(16.6445, 19.2362, 4.8433)
Luminance0.1924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C28 #282D81
analogous
#814F28 #817C28 #598128
triadic
#817C28 #28817C #7C2881
tetradic
#817C28 #28814F #282D81 #812859
square
#817C28 #28814F #282D81 #812859
split-complementary
#817C28 #285981 #4F2881
monochromatic
#24220B #524F1A #817C28 #B0A936 #CBC558

Accessibility & contrast

On white

4.33
#817C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#817C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C28
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C28#FFFFFF#000000##000000
##817C281.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87771C
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c28;
/* rgb */ color: rgb(129, 124, 40);
/* oklch */ color: oklch(57.4% 0.104 105.9);
Tailwind
colors: {
  custom: {
    50: '#a8a167',
    500: '#817c28',
    950: '#000000',
  },
}
SCSS
$custom: #817c28;
$custom-light: #a8a167;
$custom-dark: #000000;
JSON
{
  "hex": "#817c28",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 56.629,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5742,
    "c": 0.10419,
    "h": 105.9
  },
  "luminance": 0.19236
}

Semantic roles & 50–950 ramp

primary
#817C28
secondary
#545AB0
accent
#54DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817C28

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

Preview Lab → · Contrast checker → · Palette generator →

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