#9F2A8D#9F2A8D

#9F2A8D is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.3% C 0.186 H 335.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9F2A8D
RGBrgb(159, 42, 141)
HSLhsl(309, 58%, 39%)
HSVhsv(309, 74%, 62%)
CMYKcmyk(0%, 73.6%, 11.3%, 37.6%)
CIE-LABlab(39.50, 57.85, -28.80)
CIE-LCHlch(39.50, 64.62, 333.53°)
OKLaboklab(50.3% 0.1687 -0.0787)
OKLCHoklch(50.3% 0.186 335)
XYZxyz(19.9340, 10.9517, 26.2582)
Luminance0.1095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A8D #2A9F3C
analogous
#772A9F #9F2A8D #9F2A53
triadic
#9F2A8D #8D9F2A #2A8D9F
tetradic
#9F2A8D #9F772A #2A9F3C #2A539F
square
#9F2A8D #9F772A #2A9F3C #2A539F
split-complementary
#9F2A8D #539F2A #2A9F77
monochromatic
#3E1037 #6F1D62 #9F2A8D #CB3BB5 #D86BC7

Accessibility & contrast

On white

6.58
#9F2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9F2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A8D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A8D#FFFFFF#000000##FFFFFF
##9F2A8D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295290
Deuteranopia (green-blind)
#53638A
Tritanopia (blue-blind)
#A73358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2a8d;
/* rgb */ color: rgb(159, 42, 141);
/* oklch */ color: oklch(50.3% 0.186 335.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fae',
    500: '#9f2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a8d;
$custom-light: #bf6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a8d",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 309.231,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50304,
    "c": 0.18615,
    "h": 335
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

primary
#9F2A8D
secondary
#66BF74
accent
#E15E46
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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