#9F2AA6#9F2AA6

#9F2AA6 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.205 H 325.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9F2AA6
RGBrgb(159, 42, 166)
HSLhsl(297, 60%, 41%)
HSVhsv(297, 75%, 65%)
CMYKcmyk(4.2%, 74.7%, 0%, 34.9%)
CIE-LABlab(40.87, 61.92, -41.75)
CIE-LCHlch(40.87, 74.68, 326.01°)
OKLaboklab(51.73% 0.1693 -0.1162)
OKLCHoklch(51.73% 0.205 325.5)
XYZxyz(22.0085, 11.7815, 37.1839)
Luminance0.1178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2AA6 #31A62A
analogous
#612AA6 #9F2AA6 #A62A6F
triadic
#9F2AA6 #A69F2A #2AA69F
tetradic
#9F2AA6 #A6612A #31A62A #2A6FA6
square
#9F2AA6 #A6612A #31A62A #2A6FA6
split-complementary
#9F2AA6 #6FA62A #2AA661
monochromatic
#411144 #701E75 #9F2AA6 #C63FCE #D570DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F2AA6#FFFFFF#000000##FFFFFF
##9F2AA61.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)
#0057A9
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#A34066
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2aa6;
/* rgb */ color: rgb(159, 42, 166);
/* oklch */ color: oklch(51.7% 0.205 325.5);
Tailwind
colors: {
  custom: {
    50: '#bf70c1',
    500: '#9f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #9f2aa6;
$custom-light: #bf70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2aa6",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 296.613,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51727,
    "c": 0.20532,
    "h": 325.5
  },
  "luminance": 0.1178
}

Semantic roles & 50–950 ramp

primary
#9F2AA6
secondary
#6FC26A
accent
#E3454E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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