#817E22#817E22

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

Color values

HEX#817E22
RGBrgb(129, 126, 34)
HSLhsl(58, 58%, 32%)
HSVhsv(58, 74%, 51%)
CMYKcmyk(0%, 2.3%, 73.6%, 49.4%)
CIE-LABlab(51.50, -10.33, 47.59)
CIE-LCHlch(51.50, 48.70, 102.25°)
OKLaboklab(57.84% -0.0333 0.1054)
OKLCHoklch(57.84% 0.111 107.5)
XYZxyz(16.8035, 19.7049, 4.4313)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E22 #222581
analogous
#814F22 #817E22 #558122
triadic
#817E22 #22817E #7E2281
tetradic
#817E22 #22814F #222581 #812255
square
#817E22 #22814F #222581 #812255
split-complementary
#817E22 #225581 #4F2281
monochromatic
#201F08 #514F15 #817E22 #B1AD2F #D0CC4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817E22#FFFFFF#000000##000000
##817E221.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)
#897912
Deuteranopia (green-blind)
#8B7C29
Tritanopia (blue-blind)
#8B756C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e22;
/* rgb */ color: rgb(129, 126, 34);
/* oklch */ color: oklch(57.8% 0.111 107.5);
Tailwind
colors: {
  custom: {
    50: '#a9a364',
    500: '#817e22',
    950: '#000000',
  },
}
SCSS
$custom: #817e22;
$custom-light: #a9a364;
$custom-dark: #000000;
JSON
{
  "hex": "#817e22",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 58.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.11055,
    "h": 107.5
  },
  "luminance": 0.19704
}

Semantic roles & 50–950 ramp

primary
#817E22
secondary
#4B4FB3
accent
#4BE146
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #817E22

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

Preview Lab → · Contrast checker → · Palette generator →

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