#8B9817#8B9817

#8B9817 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.7% C 0.141 H 115.8°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8B9817
RGBrgb(139, 152, 23)
HSLhsl(66, 74%, 34%)
HSVhsv(66, 85%, 60%)
CMYKcmyk(8.6%, 0%, 84.9%, 40.4%)
CIE-LABlab(59.90, -20.00, 58.97)
CIE-LCHlch(59.90, 62.27, 108.73°)
OKLaboklab(64.74% -0.0616 0.1273)
OKLCHoklch(64.74% 0.141 115.8)
XYZxyz(22.0310, 28.0077, 5.0559)
Luminance0.2801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B9817 #241798
analogous
#986517 #8B9817 #4A9817
triadic
#8B9817 #178B98 #98178B
tetradic
#8B9817 #179865 #241798 #98174A
square
#8B9817 #179865 #241798 #98174A
split-complementary
#8B9817 #174A98 #651798
monochromatic
#2A2E07 #5A630F #8B9817 #BCCD1F #D3E346

Accessibility & contrast

On white

3.18
#8B9817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#8B9817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B9817
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B9817#FFFFFF#000000##000000
##8B98171.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b9817;
/* rgb */ color: rgb(139, 152, 23);
/* oklch */ color: oklch(64.7% 0.141 115.8);
Tailwind
colors: {
  custom: {
    50: '#b1b663',
    500: '#8b9817',
    950: '#000000',
  },
}
SCSS
$custom: #8b9817;
$custom-light: #b1b663;
$custom-dark: #000000;
JSON
{
  "hex": "#8b9817",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 23
  },
  "hsl": {
    "h": 66.047,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.64745,
    "c": 0.14136,
    "h": 115.8
  },
  "luminance": 0.28007
}

Semantic roles & 50–950 ramp

primary
#8B9817
secondary
#5347C4
accent
#37F04A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B9817

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

Preview Lab → · Contrast checker → · Palette generator →

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