#9F2AAA#9F2AAA

#9F2AAA is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.209 H 324.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9F2AAA
RGBrgb(159, 42, 170)
HSLhsl(295, 60%, 42%)
HSVhsv(295, 75%, 67%)
CMYKcmyk(6.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(41.11, 62.61, -43.76)
CIE-LCHlch(41.11, 76.39, 325.05°)
OKLaboklab(51.97% 0.1691 -0.122)
OKLCHoklch(51.97% 0.209 324.2)
XYZxyz(22.3811, 11.9305, 39.1464)
Luminance0.1193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2AAA #35AA2A
analogous
#5F2AAA #9F2AAA #AA2A75
triadic
#9F2AAA #AA9F2A #2AAA9F
tetradic
#9F2AAA #AA5F2A #35AA2A #2A75AA
square
#9F2AAA #AA5F2A #35AA2A #2A75AA
split-complementary
#9F2AAA #75AA2A #2AAA5F
monochromatic
#431248 #711E79 #9F2AAA #C441D0 #D372DC

Accessibility & contrast

On white

6.20
#9F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9F2AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2AAA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2AAA#FFFFFF#000000##FFFFFF
##9F2AAA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#4366A7
Tritanopia (blue-blind)
#A24268
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2aaa;
/* rgb */ color: rgb(159, 42, 170);
/* oklch */ color: oklch(52.0% 0.209 324.2);
Tailwind
colors: {
  custom: {
    50: '#bf71c4',
    500: '#9f2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #9f2aaa;
$custom-light: #bf71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2aaa",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 294.844,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51974,
    "c": 0.20853,
    "h": 324.2
  },
  "luminance": 0.11929
}

Semantic roles & 50–950 ramp

primary
#9F2AAA
secondary
#74C36C
accent
#E44452
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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