#9F2AB7#9F2AB7

#9F2AB7 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.219 H 320.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9F2AB7
RGBrgb(159, 42, 183)
HSLhsl(290, 63%, 44%)
HSVhsv(290, 77%, 72%)
CMYKcmyk(13.1%, 77%, 0%, 28.2%)
CIE-LABlab(41.92, 64.94, -50.15)
CIE-LCHlch(41.92, 82.05, 322.32°)
OKLaboklab(52.81% 0.168 -0.1407)
OKLCHoklch(52.81% 0.219 320)
XYZxyz(23.6722, 12.4470, 45.9462)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2AB7 #42B72A
analogous
#592AB7 #9F2AB7 #B72A89
triadic
#9F2AB7 #B79F2A #2AB79F
tetradic
#9F2AB7 #B7592A #42B72A #2A89B7
square
#9F2AB7 #B7592A #42B72A #2A89B7
split-complementary
#9F2AB7 #89B72A #2AB759
monochromatic
#491353 #741F85 #9F2AB7 #BD49D5 #CF7BE1

Accessibility & contrast

On white

6.02
#9F2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9F2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2AB7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2AB7#FFFFFF#000000##FFFFFF
##9F2AB71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#9F4870
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f2ab7;
/* rgb */ color: rgb(159, 42, 183);
/* oklch */ color: oklch(52.8% 0.219 320.0);
Tailwind
colors: {
  custom: {
    50: '#c071cd',
    500: '#9f2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ab7;
$custom-light: #c071cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ab7",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 289.787,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5281,
    "c": 0.21915,
    "h": 320
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#9F2AB7
secondary
#82C974
accent
#E6425E
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9F2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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