#9F2E8E#9F2E8E

#9F2E8E is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.182 H 334.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9F2E8E
RGBrgb(159, 46, 142)
HSLhsl(309, 55%, 40%)
HSVhsv(309, 71%, 62%)
CMYKcmyk(0%, 71.1%, 10.7%, 37.6%)
CIE-LABlab(40.05, 56.59, -28.55)
CIE-LCHlch(40.05, 63.39, 333.23°)
OKLaboklab(50.72% 0.1646 -0.078)
OKLCHoklch(50.72% 0.182 334.6)
XYZxyz(20.1578, 11.2796, 26.7015)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E8E #2E9F3F
analogous
#782E9F #9F2E8E #9F2E55
triadic
#9F2E8E #8E9F2E #2E8E9F
tetradic
#9F2E8E #9F782E #2E9F3F #2E559F
square
#9F2E8E #9F782E #2E9F3F #2E559F
split-complementary
#9F2E8E #559F2E #2E9F78
monochromatic
#401339 #702064 #9F2E8E #C842B4 #D671C7

Accessibility & contrast

On white

6.45
#9F2E8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F2E8E
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E8E#FFFFFF#000000##FFFFFF
##9F2E8E1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#A7375A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e8e;
/* rgb */ color: rgb(159, 46, 142);
/* oklch */ color: oklch(50.7% 0.182 334.6);
Tailwind
colors: {
  custom: {
    50: '#bf71af',
    500: '#9f2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e8e;
$custom-light: #bf71af;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e8e",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 309.027,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50716,
    "c": 0.18218,
    "h": 334.6
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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