#9F2DC8#9F2DC8

#9F2DC8 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.231 H 315.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9F2DC8
RGBrgb(159, 45, 200)
HSLhsl(284, 63%, 48%)
HSVhsv(284, 78%, 78%)
CMYKcmyk(20.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(43.39, 67.17, -57.72)
CIE-LCHlch(43.39, 88.57, 319.33°)
OKLaboklab(54.21% 0.1631 -0.163)
OKLCHoklch(54.21% 0.231 315)
XYZxyz(25.6601, 13.4188, 55.8708)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DC8 #56C82D
analogous
#512DC8 #9F2DC8 #C82DA3
triadic
#9F2DC8 #C89F2D #2DC89F
tetradic
#9F2DC8 #C8512D #56C82D #2DA3C8
square
#9F2DC8 #C8512D #56C82D #2DA3C8
split-complementary
#9F2DC8 #A3C82D #2DC851
monochromatic
#501764 #772296 #9F2DC8 #B759DA #CD8BE5

Accessibility & contrast

On white

5.70
#9F2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9F2DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DC8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DC8#FFFFFF#000000##FFFFFF
##9F2DC81.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#2569C5
Tritanopia (blue-blind)
#9B517A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f2dc8;
/* rgb */ color: rgb(159, 45, 200);
/* oklch */ color: oklch(54.2% 0.231 315.0);
Tailwind
colors: {
  custom: {
    50: '#c073da',
    500: '#9f2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #9f2dc8;
$custom-light: #c073da;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2dc8",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 284.129,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54208,
    "c": 0.23056,
    "h": 315
  },
  "luminance": 0.13418
}

Semantic roles & 50–950 ramp

primary
#9F2DC8
secondary
#96CF82
accent
#E6416D
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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