#9F2DBD#9F2DBD

#9F2DBD is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.221 H 318.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9F2DBD
RGBrgb(159, 45, 189)
HSLhsl(288, 62%, 46%)
HSVhsv(288, 76%, 74%)
CMYKcmyk(15.9%, 76.2%, 0%, 25.9%)
CIE-LABlab(42.65, 65.08, -52.51)
CIE-LCHlch(42.65, 83.62, 321.10°)
OKLaboklab(53.45% 0.1647 -0.1476)
OKLCHoklch(53.45% 0.221 318.1)
XYZxyz(24.4205, 12.9230, 49.3423)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DBD #4BBD2D
analogous
#572DBD #9F2DBD #BD2D93
triadic
#9F2DBD #BD9F2D #2DBD9F
tetradic
#9F2DBD #BD572D #4BBD2D #2D93BD
square
#9F2DBD #BD572D #4BBD2D #2D93BD
split-complementary
#9F2DBD #93BD2D #2DBD57
monochromatic
#4C155A #75218C #9F2DBD #BA52D6 #CE83E1

Accessibility & contrast

On white

5.86
#9F2DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9F2DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DBD
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DBD#FFFFFF#000000##FFFFFF
##9F2DBD1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#3468BA
Tritanopia (blue-blind)
#9E4C74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9f2dbd;
/* rgb */ color: rgb(159, 45, 189);
/* oklch */ color: oklch(53.4% 0.221 318.1);
Tailwind
colors: {
  custom: {
    50: '#c073d2',
    500: '#9f2dbd',
    950: '#000000',
  },
}
SCSS
$custom: #9f2dbd;
$custom-light: #c073d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2dbd",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 287.5,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5345,
    "c": 0.2212,
    "h": 318.1
  },
  "luminance": 0.12922
}

Semantic roles & 50–950 ramp

primary
#9F2DBD
secondary
#8CCB7B
accent
#E54365
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F2DBD

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

Preview Lab → · Contrast checker → · Palette generator →

#9F2DBD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva