#9F2AA7#9F2AA7

#9F2AA7 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.206 H 325.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9F2AA7
RGBrgb(159, 42, 167)
HSLhsl(296, 60%, 41%)
HSVhsv(296, 75%, 65%)
CMYKcmyk(4.8%, 74.9%, 0%, 34.5%)
CIE-LABlab(40.93, 62.09, -42.25)
CIE-LCHlch(40.93, 75.11, 325.77°)
OKLaboklab(51.79% 0.1693 -0.1176)
OKLCHoklch(51.79% 0.206 325.2)
XYZxyz(22.1006, 11.8183, 37.6688)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2AA7 #32A72A
analogous
#602AA7 #9F2AA7 #A72A70
triadic
#9F2AA7 #A79F2A #2AA79F
tetradic
#9F2AA7 #A7602A #32A72A #2A70A7
square
#9F2AA7 #A7602A #32A72A #2A70A7
split-complementary
#9F2AA7 #70A72A #2AA760
monochromatic
#421145 #701E76 #9F2AA7 #C63FCF #D470DB

Accessibility & contrast

On white

6.24
#9F2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2AA7
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2AA7#FFFFFF#000000##FFFFFF
##9F2AA71.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#A34067
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f2aa7;
/* rgb */ color: rgb(159, 42, 167);
/* oklch */ color: oklch(51.8% 0.206 325.2);
Tailwind
colors: {
  custom: {
    50: '#bf70c2',
    500: '#9f2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2aa7;
$custom-light: #bf70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2aa7",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 296.16,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51788,
    "c": 0.20612,
    "h": 325.2
  },
  "luminance": 0.11817
}

Semantic roles & 50–950 ramp

primary
#9F2AA7
secondary
#70C26B
accent
#E3454F
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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