#9F2DB7#9F2DB7

#9F2DB7 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.216 H 319.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9F2DB7
RGBrgb(159, 45, 183)
HSLhsl(290, 61%, 45%)
HSVhsv(290, 75%, 72%)
CMYKcmyk(13.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(42.26, 63.96, -49.61)
CIE-LCHlch(42.26, 80.94, 322.20°)
OKLaboklab(53.05% 0.1654 -0.1391)
OKLCHoklch(53.05% 0.216 319.9)
XYZxyz(23.7826, 12.6678, 45.9830)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DB7 #45B72D
analogous
#5A2DB7 #9F2DB7 #B72D8A
triadic
#9F2DB7 #B79F2D #2DB79F
tetradic
#9F2DB7 #B75A2D #45B72D #2D8AB7
square
#9F2DB7 #B75A2D #45B72D #2D8AB7
split-complementary
#9F2DB7 #8AB72D #2DB75A
monochromatic
#4A1555 #742186 #9F2DB7 #BC4ED3 #CF7FDF

Accessibility & contrast

On white

5.94
#9F2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9F2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DB7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DB7#FFFFFF#000000##FFFFFF
##9F2DB71.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3A68B4
Tritanopia (blue-blind)
#9F4971
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f2db7;
/* rgb */ color: rgb(159, 45, 183);
/* oklch */ color: oklch(53.1% 0.216 319.9);
Tailwind
colors: {
  custom: {
    50: '#bf72cd',
    500: '#9f2db7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2db7;
$custom-light: #bf72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2db7",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 289.565,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53051,
    "c": 0.21614,
    "h": 319.9
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#9F2DB7
secondary
#86C878
accent
#E44460
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9F2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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