#9F2E8F#9F2E8F

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

Color values

HEX#9F2E8F
RGBrgb(159, 46, 143)
HSLhsl(308, 55%, 40%)
HSVhsv(308, 71%, 62%)
CMYKcmyk(0%, 71.1%, 10.1%, 37.6%)
CIE-LABlab(40.10, 56.75, -29.08)
CIE-LCHlch(40.10, 63.77, 332.86°)
OKLaboklab(50.77% 0.1647 -0.0795)
OKLCHoklch(50.77% 0.183 334.2)
XYZxyz(20.2332, 11.3098, 27.0987)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E8F #2E9F3E
analogous
#772E9F #9F2E8F #9F2E56
triadic
#9F2E8F #8F9F2E #2E8F9F
tetradic
#9F2E8F #9F772E #2E9F3E #2E569F
square
#9F2E8F #9F772E #2E9F3E #2E569F
split-complementary
#9F2E8F #569F2E #2E9F77
monochromatic
#40133A #702064 #9F2E8F #C842B5 #D671C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F2E8F#FFFFFF#000000##FFFFFF
##9F2E8F1.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)
#2C5492
Deuteranopia (green-blind)
#54648C
Tritanopia (blue-blind)
#A7375B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e8f;
/* rgb */ color: rgb(159, 46, 143);
/* oklch */ color: oklch(50.8% 0.183 334.2);
Tailwind
colors: {
  custom: {
    50: '#bf71b0',
    500: '#9f2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e8f;
$custom-light: #bf71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e8f",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 308.496,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50769,
    "c": 0.18292,
    "h": 334.2
  },
  "luminance": 0.11308
}

Semantic roles & 50–950 ramp

primary
#9F2E8F
secondary
#6BBE77
accent
#DE5E49
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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