#9F2E8D#9F2E8D

#9F2E8D is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.181 H 335.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9F2E8D
RGBrgb(159, 46, 141)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 71.1%, 11.3%, 37.6%)
CIE-LABlab(40.00, 56.44, -28.02)
CIE-LCHlch(40.00, 63.01, 333.60°)
OKLaboklab(50.66% 0.1645 -0.0765)
OKLCHoklch(50.66% 0.181 335.1)
XYZxyz(20.0830, 11.2497, 26.3078)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E8D #2E9F40
analogous
#792E9F #9F2E8D #9F2E54
triadic
#9F2E8D #8D9F2E #2E8D9F
tetradic
#9F2E8D #9F792E #2E9F40 #2E549F
square
#9F2E8D #9F792E #2E9F40 #2E549F
split-complementary
#9F2E8D #549F2E #2E9F79
monochromatic
#401339 #702063 #9F2E8D #C842B3 #D671C6

Accessibility & contrast

On white

6.46
#9F2E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F2E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E8D
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E8D#FFFFFF#000000##FFFFFF
##9F2E8D1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#55648A
Tritanopia (blue-blind)
#A7375A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e8d;
/* rgb */ color: rgb(159, 46, 141);
/* oklch */ color: oklch(50.7% 0.181 335.1);
Tailwind
colors: {
  custom: {
    50: '#bf71ae',
    500: '#9f2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e8d;
$custom-light: #bf71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e8d",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 309.558,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50664,
    "c": 0.18144,
    "h": 335.1
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#9F2E8D
secondary
#6BBE78
accent
#DE6149
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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