#9217B4#9217B4

#9217B4 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.5% C 0.227 H 316.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9217B4
RGBrgb(146, 23, 180)
HSLhsl(287, 77%, 40%)
HSVhsv(287, 87%, 71%)
CMYKcmyk(18.9%, 87.2%, 0%, 29.4%)
CIE-LABlab(37.88, 67.12, -55.00)
CIE-LCHlch(37.88, 86.78, 320.66°)
OKLaboklab(49.5% 0.166 -0.1553)
OKLCHoklch(49.5% 0.227 316.9)
XYZxyz(20.3974, 10.0200, 44.0308)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9217B4 #39B417
analogous
#4317B4 #9217B4 #B41788
triadic
#9217B4 #B49217 #17B492
tetradic
#9217B4 #B44317 #39B417 #1788B4
square
#9217B4 #B44317 #39B417 #1788B4
split-complementary
#9217B4 #88B417 #17B443
monochromatic
#3A0947 #66107E #9217B4 #BA25E3 #CB5BEA

Accessibility & contrast

On white

6.99
#9217B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#9217B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9217B4
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9217B4#FFFFFF#000000##FFFFFF
##9217B41.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#185CB1
Tritanopia (blue-blind)
#90416B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9217b4;
/* rgb */ color: rgb(146, 23, 180);
/* oklch */ color: oklch(49.5% 0.227 316.9);
Tailwind
colors: {
  custom: {
    50: '#b769cb',
    500: '#9217b4',
    950: '#000000',
  },
}
SCSS
$custom: #9217b4;
$custom-light: #b769cb;
$custom-dark: #000000;
JSON
{
  "hex": "#9217b4",
  "rgb": {
    "r": 146,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 287.006,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49497,
    "c": 0.22728,
    "h": 316.9
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#9217B4
secondary
#72CE59
accent
#F4345D
background
#FBF6FC
surface
#F7ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #9217B4

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

Preview Lab → · Contrast checker → · Palette generator →

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