#8B9917#8B9917

#8B9917 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.0% C 0.142 H 116.2°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8B9917
RGBrgb(139, 153, 23)
HSLhsl(66, 74%, 35%)
HSVhsv(66, 85%, 60%)
CMYKcmyk(9.2%, 0%, 85%, 40%)
CIE-LABlab(60.19, -20.51, 59.22)
CIE-LCHlch(60.19, 62.67, 109.10°)
OKLaboklab(64.98% -0.063 0.1278)
OKLCHoklch(64.98% 0.142 116.2)
XYZxyz(22.1940, 28.3336, 5.1102)
Luminance0.2833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B9917 #251799
analogous
#996617 #8B9917 #4A9917
triadic
#8B9917 #178B99 #99178B
tetradic
#8B9917 #179966 #251799 #99174A
square
#8B9917 #179966 #251799 #99174A
split-complementary
#8B9917 #174A99 #661799
monochromatic
#2A2F07 #5B640F #8B9917 #BBCE1F #D3E347

Accessibility & contrast

On white

3.15
#8B9917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#8B9917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B9917
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B9917#FFFFFF#000000##000000
##8B99171.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A39225
Tritanopia (blue-blind)
#949082
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8b9917;
/* rgb */ color: rgb(139, 153, 23);
/* oklch */ color: oklch(65.0% 0.142 116.2);
Tailwind
colors: {
  custom: {
    50: '#b1b663',
    500: '#8b9917',
    950: '#000000',
  },
}
SCSS
$custom: #8b9917;
$custom-light: #b1b663;
$custom-dark: #000000;
JSON
{
  "hex": "#8b9917",
  "rgb": {
    "r": 139,
    "g": 153,
    "b": 23
  },
  "hsl": {
    "h": 66.462,
    "s": 73.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.64981,
    "c": 0.14246,
    "h": 116.2
  },
  "luminance": 0.28333
}

Semantic roles & 50–950 ramp

primary
#8B9917
secondary
#5547C5
accent
#37F14B
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8B9917

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

Preview Lab → · Contrast checker → · Palette generator →

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