#817B22#817B22

#817B22 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.1% C 0.108 H 105.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#817B22
RGBrgb(129, 123, 34)
HSLhsl(56, 58%, 32%)
HSVhsv(56, 74%, 51%)
CMYKcmyk(0%, 4.7%, 73.6%, 49.4%)
CIE-LABlab(50.63, -8.68, 46.74)
CIE-LCHlch(50.63, 47.54, 100.53°)
OKLaboklab(57.14% -0.0286 0.1036)
OKLCHoklch(57.14% 0.108 105.5)
XYZxyz(16.4256, 18.9492, 4.3054)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817B22 #222881
analogous
#814C22 #817B22 #578122
triadic
#817B22 #22817B #7B2281
tetradic
#817B22 #22814C #222881 #812257
square
#817B22 #22814C #222881 #812257
split-complementary
#817B22 #225781 #4C2281
monochromatic
#201F08 #514D15 #817B22 #B1A92F #D0C84D

Accessibility & contrast

On white

4.38
#817B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#817B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817B22
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817B22#FFFFFF#000000##000000
##817B221.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867613
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#8B726A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817b22;
/* rgb */ color: rgb(129, 123, 34);
/* oklch */ color: oklch(57.1% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#a9a064',
    500: '#817b22',
    950: '#000000',
  },
}
SCSS
$custom: #817b22;
$custom-light: #a9a064;
$custom-dark: #000000;
JSON
{
  "hex": "#817b22",
  "rgb": {
    "r": 129,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 56.211,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5714,
    "c": 0.10751,
    "h": 105.5
  },
  "luminance": 0.18949
}

Semantic roles & 50–950 ramp

primary
#817B22
secondary
#4B52B3
accent
#50E146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817B22

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

Preview Lab → · Contrast checker → · Palette generator →

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