#8A9817#8A9817

#8A9817 is a light, vivid yellow. Relative luminance 0.279; OKLCH L 64.7% C 0.142 H 116.3°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8A9817
RGBrgb(138, 152, 23)
HSLhsl(67, 74%, 34%)
HSVhsv(67, 85%, 60%)
CMYKcmyk(9.2%, 0%, 84.9%, 40.4%)
CIE-LABlab(59.82, -20.44, 58.87)
CIE-LCHlch(59.82, 62.32, 109.14°)
OKLaboklab(64.66% -0.0627 0.1271)
OKLCHoklch(64.66% 0.142 116.3)
XYZxyz(21.8648, 27.9219, 5.0481)
Luminance0.2792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9817 #251798
analogous
#986617 #8A9817 #499817
triadic
#8A9817 #178A98 #98178A
tetradic
#8A9817 #179866 #251798 #981749
square
#8A9817 #179866 #251798 #981749
split-complementary
#8A9817 #174998 #661798
monochromatic
#292E07 #5A630F #8A9817 #BACD1F #D2E346

Accessibility & contrast

On white

3.19
#8A9817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#8A9817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9817
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9817#FFFFFF#000000##000000
##8A98171.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A29125
Tritanopia (blue-blind)
#938F81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9817;
/* rgb */ color: rgb(138, 152, 23);
/* oklch */ color: oklch(64.7% 0.142 116.3);
Tailwind
colors: {
  custom: {
    50: '#b0b663',
    500: '#8a9817',
    950: '#000000',
  },
}
SCSS
$custom: #8a9817;
$custom-light: #b0b663;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9817",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 23
  },
  "hsl": {
    "h": 66.512,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.64663,
    "c": 0.14172,
    "h": 116.3
  },
  "luminance": 0.27922
}

Semantic roles & 50–950 ramp

primary
#8A9817
secondary
#5447C4
accent
#37F04B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9817

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

Preview Lab → · Contrast checker → · Palette generator →

#8A9817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva