#817F22#817F22

#817F22 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.112 H 108.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#817F22
RGBrgb(129, 127, 34)
HSLhsl(59, 58%, 32%)
HSVhsv(59, 74%, 51%)
CMYKcmyk(0%, 1.6%, 73.6%, 49.4%)
CIE-LABlab(51.79, -10.88, 47.87)
CIE-LCHlch(51.79, 49.09, 102.80°)
OKLaboklab(58.07% -0.0348 0.106)
OKLCHoklch(58.07% 0.112 108.2)
XYZxyz(16.9320, 19.9619, 4.4742)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F22 #222481
analogous
#815022 #817F22 #548122
triadic
#817F22 #22817F #7F2281
tetradic
#817F22 #228150 #222481 #812254
square
#817F22 #228150 #222481 #812254
split-complementary
#817F22 #225481 #502281
monochromatic
#202008 #514F15 #817F22 #B1AF2F #D0CD4D

Accessibility & contrast

On white

4.21
#817F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#817F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817F22
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817F22#FFFFFF#000000##000000
##817F221.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A11
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#8B766D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817f22;
/* rgb */ color: rgb(129, 127, 34);
/* oklch */ color: oklch(58.1% 0.112 108.2);
Tailwind
colors: {
  custom: {
    50: '#a9a364',
    500: '#817f22',
    950: '#000000',
  },
}
SCSS
$custom: #817f22;
$custom-light: #a9a364;
$custom-dark: #000000;
JSON
{
  "hex": "#817f22",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 58.737,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5807,
    "c": 0.11159,
    "h": 108.2
  },
  "luminance": 0.19961
}

Semantic roles & 50–950 ramp

primary
#817F22
secondary
#4B4EB3
accent
#4AE146
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #817F22

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

Preview Lab → · Contrast checker → · Palette generator →

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