#9F2A8F#9F2A8F

#9F2A8F is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.188 H 334.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9F2A8F
RGBrgb(159, 42, 143)
HSLhsl(308, 58%, 39%)
HSVhsv(308, 74%, 62%)
CMYKcmyk(0%, 73.6%, 10.1%, 37.6%)
CIE-LABlab(39.60, 58.15, -29.86)
CIE-LCHlch(39.60, 65.37, 332.82°)
OKLaboklab(50.41% 0.1689 -0.0817)
OKLCHoklch(50.41% 0.188 334.2)
XYZxyz(20.0841, 11.0118, 27.0490)
Luminance0.1101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A8F #2A9F3A
analogous
#752A9F #9F2A8F #9F2A55
triadic
#9F2A8F #8F9F2A #2A8F9F
tetradic
#9F2A8F #9F752A #2A9F3A #2A559F
square
#9F2A8F #9F752A #2A9F3A #2A559F
split-complementary
#9F2A8F #559F2A #2A9F75
monochromatic
#3E1038 #6F1D63 #9F2A8F #CB3BB7 #D86BC9

Accessibility & contrast

On white

6.56
#9F2A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9F2A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A8F
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A8F#FFFFFF#000000##FFFFFF
##9F2A8F1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285292
Deuteranopia (green-blind)
#52638C
Tritanopia (blue-blind)
#A7345A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2a8f;
/* rgb */ color: rgb(159, 42, 143);
/* oklch */ color: oklch(50.4% 0.188 334.2);
Tailwind
colors: {
  custom: {
    50: '#bf6fb0',
    500: '#9f2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a8f;
$custom-light: #bf6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a8f",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 308.205,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5041,
    "c": 0.18761,
    "h": 334.2
  },
  "luminance": 0.1101
}

Semantic roles & 50–950 ramp

primary
#9F2A8F
secondary
#66BF72
accent
#E15C46
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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