#817A22#817A22

#817A22 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.107 H 104.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#817A22
RGBrgb(129, 122, 34)
HSLhsl(56, 58%, 32%)
HSVhsv(56, 74%, 51%)
CMYKcmyk(0%, 5.4%, 73.6%, 49.4%)
CIE-LABlab(50.34, -8.13, 46.46)
CIE-LCHlch(50.34, 47.16, 99.93°)
OKLaboklab(56.91% -0.0271 0.103)
OKLCHoklch(56.91% 0.107 104.7)
XYZxyz(16.3022, 18.7023, 4.2643)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817A22 #222981
analogous
#814B22 #817A22 #598122
triadic
#817A22 #22817A #7A2281
tetradic
#817A22 #22814B #222981 #812259
square
#817A22 #22814B #222981 #812259
split-complementary
#817A22 #225981 #4B2281
monochromatic
#201E08 #514C15 #817A22 #B1A82F #D0C74D

Accessibility & contrast

On white

4.43
#817A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#817A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817A22
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817A22#FFFFFF#000000##000000
##817A221.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #817a22;
/* rgb */ color: rgb(129, 122, 34);
/* oklch */ color: oklch(56.9% 0.107 104.7);
Tailwind
colors: {
  custom: {
    50: '#a9a064',
    500: '#817a22',
    950: '#000000',
  },
}
SCSS
$custom: #817a22;
$custom-light: #a9a064;
$custom-dark: #000000;
JSON
{
  "hex": "#817a22",
  "rgb": {
    "r": 129,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 55.579,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56908,
    "c": 0.10652,
    "h": 104.7
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#817A22
secondary
#4B53B3
accent
#52E146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817A22

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

Preview Lab → · Contrast checker → · Palette generator →

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