#9F2A8A#9F2A8A

#9F2A8A is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.184 H 336.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9F2A8A
RGBrgb(159, 42, 138)
HSLhsl(311, 58%, 39%)
HSVhsv(311, 74%, 62%)
CMYKcmyk(0%, 73.6%, 13.2%, 37.6%)
CIE-LABlab(39.35, 57.39, -27.20)
CIE-LCHlch(39.35, 63.51, 334.64°)
OKLaboklab(50.15% 0.1684 -0.0741)
OKLCHoklch(50.15% 0.184 336.3)
XYZxyz(19.7138, 10.8636, 25.0985)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A8A #2A9F3F
analogous
#7A2A9F #9F2A8A #9F2A50
triadic
#9F2A8A #8A9F2A #2A8A9F
tetradic
#9F2A8A #9F7A2A #2A9F3F #2A509F
square
#9F2A8A #9F7A2A #2A9F3F #2A509F
split-complementary
#9F2A8A #509F2A #2A9F7A
monochromatic
#3E1036 #6F1D60 #9F2A8A #CB3BB1 #D86BC5

Accessibility & contrast

On white

6.62
#9F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9F2A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A8A
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A8A#FFFFFF#000000##FFFFFF
##9F2A8A1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C518D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#A73257
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2a8a;
/* rgb */ color: rgb(159, 42, 138);
/* oklch */ color: oklch(50.1% 0.184 336.3);
Tailwind
colors: {
  custom: {
    50: '#bf6fac',
    500: '#9f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a8a;
$custom-light: #bf6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a8a",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 310.769,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50148,
    "c": 0.18399,
    "h": 336.3
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#9F2A8A
secondary
#66BF76
accent
#E16246
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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