#9F2A98#9F2A98

#9F2A98 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.9% C 0.194 H 330.6°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9F2A98
RGBrgb(159, 42, 152)
HSLhsl(304, 58%, 39%)
HSVhsv(304, 74%, 62%)
CMYKcmyk(0%, 73.6%, 4.4%, 37.6%)
CIE-LABlab(40.07, 59.58, -34.59)
CIE-LCHlch(40.07, 68.89, 329.86°)
OKLaboklab(50.9% 0.1694 -0.0954)
OKLCHoklch(50.9% 0.194 330.6)
XYZxyz(20.7935, 11.2955, 30.7848)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A98 #2A9F31
analogous
#6C2A9F #9F2A98 #9F2A5E
triadic
#9F2A98 #989F2A #2A989F
tetradic
#9F2A98 #9F6C2A #2A9F31 #2A5E9F
square
#9F2A98 #9F6C2A #2A9F31 #2A5E9F
split-complementary
#9F2A98 #5E9F2A #2A9F6C
monochromatic
#3E103B #6F1D6A #9F2A98 #CB3BC3 #D86BD2

Accessibility & contrast

On white

6.44
#9F2A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9F2A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A98
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A98#FFFFFF#000000##FFFFFF
##9F2A981.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549B
Deuteranopia (green-blind)
#4E6495
Tritanopia (blue-blind)
#A5395E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2a98;
/* rgb */ color: rgb(159, 42, 152);
/* oklch */ color: oklch(50.9% 0.194 330.6);
Tailwind
colors: {
  custom: {
    50: '#bf70b7',
    500: '#9f2a98',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a98;
$custom-light: #bf70b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a98",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 303.59,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50904,
    "c": 0.19437,
    "h": 330.6
  },
  "luminance": 0.11294
}

Semantic roles & 50–950 ramp

primary
#9F2A98
secondary
#66BF6B
accent
#E15046
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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