#9817B4#9817B4

#9817B4 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.4% C 0.229 H 319.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9817B4
RGBrgb(152, 23, 180)
HSLhsl(289, 77%, 40%)
HSVhsv(289, 87%, 71%)
CMYKcmyk(15.6%, 87.2%, 0%, 29.4%)
CIE-LABlab(38.87, 68.10, -53.35)
CIE-LCHlch(38.87, 86.51, 321.92°)
OKLaboklab(50.38% 0.1732 -0.1502)
OKLCHoklch(50.38% 0.229 319.1)
XYZxyz(21.4924, 10.5846, 44.0821)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9817B4 #33B417
analogous
#4917B4 #9817B4 #B41782
triadic
#9817B4 #B49817 #17B498
tetradic
#9817B4 #B44917 #33B417 #1782B4
square
#9817B4 #B44917 #33B417 #1782B4
split-complementary
#9817B4 #82B417 #17B449
monochromatic
#3C0947 #6A107E #9817B4 #C125E3 #D15BEA

Accessibility & contrast

On white

6.74
#9817B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9817B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9817B4
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9817B4#FFFFFF#000000##FFFFFF
##9817B41.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#255FB1
Tritanopia (blue-blind)
#98406B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9817b4;
/* rgb */ color: rgb(152, 23, 180);
/* oklch */ color: oklch(50.4% 0.229 319.1);
Tailwind
colors: {
  custom: {
    50: '#bb6acb',
    500: '#9817b4',
    950: '#000000',
  },
}
SCSS
$custom: #9817b4;
$custom-light: #bb6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#9817b4",
  "rgb": {
    "r": 152,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 289.299,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.22926,
    "h": 319.1
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#9817B4
secondary
#6ECE59
accent
#F43456
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #9817B4

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

Preview Lab → · Contrast checker → · Palette generator →

#9817B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva