#817F18#817F18

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

Color values

HEX#817F18
RGBrgb(129, 127, 24)
HSLhsl(59, 69%, 30%)
HSVhsv(59, 81%, 51%)
CMYKcmyk(0%, 1.6%, 81.4%, 49.4%)
CIE-LABlab(51.74, -11.32, 51.30)
CIE-LCHlch(51.74, 52.54, 102.45°)
OKLaboklab(58.01% -0.037 0.1114)
OKLCHoklch(58.01% 0.117 108.4)
XYZxyz(16.8082, 19.9124, 3.8221)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817F18 #181A81
analogous
#814A18 #817F18 #4F8118
triadic
#817F18 #18817F #7F1881
tetradic
#817F18 #18814A #181A81 #81184F
square
#817F18 #18814A #181A81 #81184F
split-complementary
#817F18 #184F81 #4A1881
monochromatic
#1A1905 #4D4C0E #817F18 #B5B222 #DAD739

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817F18#FFFFFF#000000##000000
##817F181.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #817f18;
/* rgb */ color: rgb(129, 127, 24);
/* oklch */ color: oklch(58.0% 0.117 108.4);
Tailwind
colors: {
  custom: {
    50: '#a9a35f',
    500: '#817f18',
    950: '#000000',
  },
}
SCSS
$custom: #817f18;
$custom-light: #a9a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#817f18",
  "rgb": {
    "r": 129,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 58.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.58007,
    "c": 0.11735,
    "h": 108.4
  },
  "luminance": 0.19912
}

Semantic roles & 50–950 ramp

primary
#817F18
secondary
#4042B5
accent
#40EB3C
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #817F18

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

Preview Lab → · Contrast checker → · Palette generator →

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