#9F2FA1#9F2FA1

#9F2FA1 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.196 H 327.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9F2FA1
RGBrgb(159, 47, 161)
HSLhsl(299, 55%, 41%)
HSVhsv(299, 71%, 63%)
CMYKcmyk(1.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(41.18, 59.34, -38.25)
CIE-LCHlch(41.18, 70.60, 327.19°)
OKLaboklab(51.86% 0.1646 -0.106)
OKLCHoklch(51.86% 0.196 327.2)
XYZxyz(21.7473, 11.9787, 34.8780)
Luminance0.1198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2FA1 #31A12F
analogous
#662FA1 #9F2FA1 #A12F6A
triadic
#9F2FA1 #A19F2F #2FA19F
tetradic
#9F2FA1 #A1662F #31A12F #2F6AA1
square
#9F2FA1 #A1662F #31A12F #2F6AA1
split-complementary
#9F2FA1 #6AA12F #2FA166
monochromatic
#411342 #702172 #9F2FA1 #C645C9 #D574D6

Accessibility & contrast

On white

6.18
#9F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9F2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2FA1
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2FA1#FFFFFF#000000##FFFFFF
##9F2FA11.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A4
Deuteranopia (green-blind)
#4B669E
Tritanopia (blue-blind)
#A44065
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2fa1;
/* rgb */ color: rgb(159, 47, 161);
/* oklch */ color: oklch(51.9% 0.196 327.2);
Tailwind
colors: {
  custom: {
    50: '#bf72bd',
    500: '#9f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9f2fa1;
$custom-light: #bf72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2fa1",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 298.947,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.5186,
    "c": 0.19577,
    "h": 327.2
  },
  "luminance": 0.11977
}

Semantic roles & 50–950 ramp

primary
#9F2FA1
secondary
#6FBE6E
accent
#DE4A4C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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