#817D22#817D22

#817D22 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.110 H 106.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#817D22
RGBrgb(129, 125, 34)
HSLhsl(57, 58%, 32%)
HSVhsv(57, 74%, 51%)
CMYKcmyk(0%, 3.1%, 73.6%, 49.4%)
CIE-LABlab(51.21, -9.79, 47.30)
CIE-LCHlch(51.21, 48.31, 101.69°)
OKLaboklab(57.6% -0.0317 0.1048)
OKLCHoklch(57.6% 0.11 106.9)
XYZxyz(16.6763, 19.4504, 4.3889)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D22 #222681
analogous
#814E22 #817D22 #568122
triadic
#817D22 #22817D #7D2281
tetradic
#817D22 #22814E #222681 #812256
square
#817D22 #22814E #222681 #812256
split-complementary
#817D22 #225681 #4E2281
monochromatic
#201F08 #514E15 #817D22 #B1AC2F #D0CB4D

Accessibility & contrast

On white

4.29
#817D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#817D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D22
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D22#FFFFFF#000000##000000
##817D221.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887812
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d22;
/* rgb */ color: rgb(129, 125, 34);
/* oklch */ color: oklch(57.6% 0.110 106.9);
Tailwind
colors: {
  custom: {
    50: '#a9a264',
    500: '#817d22',
    950: '#000000',
  },
}
SCSS
$custom: #817d22;
$custom-light: #a9a264;
$custom-dark: #000000;
JSON
{
  "hex": "#817d22",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 57.474,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57604,
    "c": 0.10952,
    "h": 106.9
  },
  "luminance": 0.1945
}

Semantic roles & 50–950 ramp

primary
#817D22
secondary
#4B50B3
accent
#4DE146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #817D22

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

Preview Lab → · Contrast checker → · Palette generator →

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