#817F23#817F23

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

Color values

HEX#817F23
RGBrgb(129, 127, 35)
HSLhsl(59, 57%, 32%)
HSVhsv(59, 73%, 51%)
CMYKcmyk(0%, 1.6%, 72.9%, 49.4%)
CIE-LABlab(51.80, -10.83, 47.49)
CIE-LCHlch(51.80, 48.71, 102.84°)
OKLaboklab(58.08% -0.0346 0.1054)
OKLCHoklch(58.08% 0.111 108.2)
XYZxyz(16.9466, 19.9678, 4.5513)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F23 #232581
analogous
#815023 #817F23 #548123
triadic
#817F23 #23817F #7F2381
tetradic
#817F23 #238150 #232581 #812354
square
#817F23 #238150 #232581 #812354
split-complementary
#817F23 #235481 #502381
monochromatic
#212009 #515016 #817F23 #B1AE30 #CFCD4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817F23#FFFFFF#000000##000000
##817F231.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)
#8A7A13
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#8B766D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817f23;
/* rgb */ color: rgb(129, 127, 35);
/* oklch */ color: oklch(58.1% 0.111 108.2);
Tailwind
colors: {
  custom: {
    50: '#a9a365',
    500: '#817f23',
    950: '#000000',
  },
}
SCSS
$custom: #817f23;
$custom-light: #a9a365;
$custom-dark: #000000;
JSON
{
  "hex": "#817f23",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 58.723,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58077,
    "c": 0.11092,
    "h": 108.2
  },
  "luminance": 0.19967
}

Semantic roles & 50–950 ramp

primary
#817F23
secondary
#4D4FB3
accent
#4AE147
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #817F23

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

Preview Lab → · Contrast checker → · Palette generator →

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