#9F2F8D#9F2F8D

#9F2F8D is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.180 H 335.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F2F8D
RGBrgb(159, 47, 141)
HSLhsl(310, 54%, 40%)
HSVhsv(310, 70%, 62%)
CMYKcmyk(0%, 70.4%, 11.3%, 37.6%)
CIE-LABlab(40.13, 56.07, -27.81)
CIE-LCHlch(40.13, 62.59, 333.61°)
OKLaboklab(50.76% 0.1634 -0.0759)
OKLCHoklch(50.76% 0.18 335.1)
XYZxyz(20.1225, 11.3288, 26.3210)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F8D #2F9F41
analogous
#792F9F #9F2F8D #9F2F55
triadic
#9F2F8D #8D9F2F #2F8D9F
tetradic
#9F2F8D #9F792F #2F9F41 #2F559F
square
#9F2F8D #9F792F #2F9F41 #2F559F
split-complementary
#9F2F8D #559F2F #2F9F79
monochromatic
#411339 #702163 #9F2F8D #C844B2 #D673C6

Accessibility & contrast

On white

6.43
#9F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F2F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F8D
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F8D#FFFFFF#000000##FFFFFF
##9F2F8D1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#55658A
Tritanopia (blue-blind)
#A7375A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2f8d;
/* rgb */ color: rgb(159, 47, 141);
/* oklch */ color: oklch(50.8% 0.180 335.1);
Tailwind
colors: {
  custom: {
    50: '#bf72ae',
    500: '#9f2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f8d;
$custom-light: #bf72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f8d",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 309.643,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50759,
    "c": 0.18021,
    "h": 335.1
  },
  "luminance": 0.11327
}

Semantic roles & 50–950 ramp

primary
#9F2F8D
secondary
#6DBD79
accent
#DE624A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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