#817C22#817C22

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

Color values

HEX#817C22
RGBrgb(129, 124, 34)
HSLhsl(57, 58%, 32%)
HSVhsv(57, 74%, 51%)
CMYKcmyk(0%, 3.9%, 73.6%, 49.4%)
CIE-LABlab(50.92, -9.24, 47.02)
CIE-LCHlch(50.92, 47.92, 101.11°)
OKLaboklab(57.37% -0.0302 0.1042)
OKLCHoklch(57.37% 0.109 106.2)
XYZxyz(16.5503, 19.1985, 4.3470)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C22 #222781
analogous
#814D22 #817C22 #578122
triadic
#817C22 #22817C #7C2281
tetradic
#817C22 #22814D #222781 #812257
square
#817C22 #22814D #222781 #812257
split-complementary
#817C22 #225781 #4D2281
monochromatic
#201F08 #514D15 #817C22 #B1AB2F #D0C94D

Accessibility & contrast

On white

4.34
#817C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#817C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C22
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C22#FFFFFF#000000##000000
##817C221.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877712
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c22;
/* rgb */ color: rgb(129, 124, 34);
/* oklch */ color: oklch(57.4% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a9a164',
    500: '#817c22',
    950: '#000000',
  },
}
SCSS
$custom: #817c22;
$custom-light: #a9a164;
$custom-dark: #000000;
JSON
{
  "hex": "#817c22",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 56.842,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57372,
    "c": 0.10851,
    "h": 106.2
  },
  "luminance": 0.19198
}

Semantic roles & 50–950 ramp

primary
#817C22
secondary
#4B51B3
accent
#4EE146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #817C22

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

Preview Lab → · Contrast checker → · Palette generator →

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