#9F2CA2#9F2CA2

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

Color values

HEX#9F2CA2
RGBrgb(159, 44, 162)
HSLhsl(298, 57%, 40%)
HSVhsv(298, 73%, 64%)
CMYKcmyk(1.9%, 72.8%, 0%, 36.5%)
CIE-LABlab(40.87, 60.57, -39.35)
CIE-LCHlch(40.87, 72.23, 326.99°)
OKLaboklab(51.65% 0.1675 -0.1092)
OKLCHoklch(51.65% 0.2 326.9)
XYZxyz(21.7200, 11.7824, 35.3057)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2CA2 #2FA22C
analogous
#642CA2 #9F2CA2 #A22C6A
triadic
#9F2CA2 #A29F2C #2CA29F
tetradic
#9F2CA2 #A2642C #2FA22C #2C6AA2
square
#9F2CA2 #A2642C #2FA22C #2C6AA2
split-complementary
#9F2CA2 #6AA22C #2CA264
monochromatic
#411242 #701F72 #9F2CA2 #C840CB #D670D8

Accessibility & contrast

On white

6.26
#9F2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9F2CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2CA2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2CA2#FFFFFF#000000##FFFFFF
##9F2CA21.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1057A5
Deuteranopia (green-blind)
#49659F
Tritanopia (blue-blind)
#A43F65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2ca2;
/* rgb */ color: rgb(159, 44, 162);
/* oklch */ color: oklch(51.7% 0.200 326.9);
Tailwind
colors: {
  custom: {
    50: '#bf71be',
    500: '#9f2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ca2;
$custom-light: #bf71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ca2",
  "rgb": {
    "r": 159,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 298.475,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51653,
    "c": 0.19998,
    "h": 326.9
  },
  "luminance": 0.11781
}

Semantic roles & 50–950 ramp

primary
#9F2CA2
secondary
#6DBF6A
accent
#E1474B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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