#9F2DCA#9F2DCA

#9F2DCA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.232 H 314.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9F2DCA
RGBrgb(159, 45, 202)
HSLhsl(284, 64%, 48%)
HSVhsv(284, 78%, 79%)
CMYKcmyk(21.3%, 77.7%, 0%, 20.8%)
CIE-LABlab(43.53, 67.56, -58.66)
CIE-LCHlch(43.53, 89.47, 319.03°)
OKLaboklab(54.35% 0.1628 -0.1657)
OKLCHoklch(54.35% 0.232 314.5)
XYZxyz(25.8953, 13.5129, 57.1098)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DCA #58CA2D
analogous
#502DCA #9F2DCA #CA2DA6
triadic
#9F2DCA #CA9F2D #2DCA9F
tetradic
#9F2DCA #CA502D #58CA2D #2DA6CA
square
#9F2DCA #CA502D #58CA2D #2DA6CA
split-complementary
#9F2DCA #A6CA2D #2DCA50
monochromatic
#501766 #782298 #9F2DCA #B75ADA #CD8CE5

Accessibility & contrast

On white

5.67
#9F2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9F2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DCA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DCA#FFFFFF#000000##FFFFFF
##9F2DCA1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#216AC7
Tritanopia (blue-blind)
#9B527B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f2dca;
/* rgb */ color: rgb(159, 45, 202);
/* oklch */ color: oklch(54.3% 0.232 314.5);
Tailwind
colors: {
  custom: {
    50: '#c073db',
    500: '#9f2dca',
    950: '#000000',
  },
}
SCSS
$custom: #9f2dca;
$custom-light: #c073db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2dca",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 283.567,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54349,
    "c": 0.23227,
    "h": 314.5
  },
  "luminance": 0.13512
}

Semantic roles & 50–950 ramp

primary
#9F2DCA
secondary
#98CF83
accent
#E7416F
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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