#817F16#817F16

#817F16 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.118 H 108.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#817F16
RGBrgb(129, 127, 22)
HSLhsl(59, 71%, 30%)
HSVhsv(59, 83%, 51%)
CMYKcmyk(0%, 1.6%, 82.9%, 49.4%)
CIE-LABlab(51.73, -11.40, 51.90)
CIE-LCHlch(51.73, 53.13, 102.39°)
OKLaboklab(58% -0.0374 0.1122)
OKLCHoklch(58% 0.118 108.4)
XYZxyz(16.7881, 19.9044, 3.7165)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F16 #161881
analogous
#814A16 #817F16 #4D8116
triadic
#817F16 #16817F #7F1681
tetradic
#817F16 #16814A #161881 #81164D
square
#817F16 #16814A #161881 #81164D
split-complementary
#817F16 #164D81 #4A1681
monochromatic
#1A1A04 #4D4C0D #817F16 #B5B21F #DDD935

Accessibility & contrast

On white

4.22
#817F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#817F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817F16
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817F16#FFFFFF#000000##000000
##817F161.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8C7D20
Tritanopia (blue-blind)
#8B766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817f16;
/* rgb */ color: rgb(129, 127, 22);
/* oklch */ color: oklch(58.0% 0.118 108.4);
Tailwind
colors: {
  custom: {
    50: '#a9a35f',
    500: '#817f16',
    950: '#000000',
  },
}
SCSS
$custom: #817f16;
$custom-light: #a9a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#817f16",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 58.879,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57997,
    "c": 0.1183,
    "h": 108.4
  },
  "luminance": 0.19904
}

Semantic roles & 50–950 ramp

primary
#817F16
secondary
#3D3FB6
accent
#3EEE3A
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #817F16

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

Preview Lab → · Contrast checker → · Palette generator →

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