#9F2DA2#9F2DA2

#9F2DA2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.199 H 326.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9F2DA2
RGBrgb(159, 45, 162)
HSLhsl(298, 57%, 41%)
HSVhsv(298, 72%, 64%)
CMYKcmyk(1.9%, 72.2%, 0%, 36.5%)
CIE-LABlab(40.99, 60.22, -39.16)
CIE-LCHlch(40.99, 71.83, 326.96°)
OKLaboklab(51.74% 0.1666 -0.1086)
OKLCHoklch(51.74% 0.199 326.9)
XYZxyz(21.7577, 11.8578, 35.3182)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2DA2 #30A22D
analogous
#652DA2 #9F2DA2 #A22D6A
triadic
#9F2DA2 #A29F2D #2DA29F
tetradic
#9F2DA2 #A2652D #30A22D #2D6AA2
square
#9F2DA2 #A2652D #30A22D #2D6AA2
split-complementary
#9F2DA2 #6AA22D #2DA265
monochromatic
#411242 #702072 #9F2DA2 #C742CA #D572D8

Accessibility & contrast

On white

6.23
#9F2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9F2DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2DA2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2DA2#FFFFFF#000000##FFFFFF
##9F2DA21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A34065
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2da2;
/* rgb */ color: rgb(159, 45, 162);
/* oklch */ color: oklch(51.7% 0.199 326.9);
Tailwind
colors: {
  custom: {
    50: '#bf71be',
    500: '#9f2da2',
    950: '#000000',
  },
}
SCSS
$custom: #9f2da2;
$custom-light: #bf71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2da2",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 298.462,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.19886,
    "h": 326.9
  },
  "luminance": 0.11856
}

Semantic roles & 50–950 ramp

primary
#9F2DA2
secondary
#6EBF6C
accent
#E0484C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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