#9F2E97#9F2E97

#9F2E97 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.2% C 0.189 H 331.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9F2E97
RGBrgb(159, 46, 151)
HSLhsl(304, 55%, 40%)
HSVhsv(304, 71%, 62%)
CMYKcmyk(0%, 71.1%, 5%, 37.6%)
CIE-LABlab(40.51, 58.03, -33.29)
CIE-LCHlch(40.51, 66.90, 330.15°)
OKLaboklab(51.2% 0.1653 -0.0917)
OKLCHoklch(51.2% 0.189 331)
XYZxyz(20.8609, 11.5609, 30.4049)
Luminance0.1156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E97 #2E9F36
analogous
#6F2E9F #9F2E97 #9F2E5E
triadic
#9F2E97 #979F2E #2E979F
tetradic
#9F2E97 #9F6F2E #2E9F36 #2E5E9F
square
#9F2E97 #9F6F2E #2E9F36 #2E5E9F
split-complementary
#9F2E97 #5E9F2E #2E9F6F
monochromatic
#40133D #70206A #9F2E97 #C842BF #D671CF

Accessibility & contrast

On white

6.34
#9F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9F2E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E97
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E97#FFFFFF#000000##FFFFFF
##9F2E971.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25559A
Deuteranopia (green-blind)
#506594
Tritanopia (blue-blind)
#A53B5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2e97;
/* rgb */ color: rgb(159, 46, 151);
/* oklch */ color: oklch(51.2% 0.189 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf71b6',
    500: '#9f2e97',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e97;
$custom-light: #bf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e97",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 304.248,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.512,
    "c": 0.18901,
    "h": 331
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#9F2E97
secondary
#6BBE71
accent
#DE5449
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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