#9F2E8B#9F2E8B

#9F2E8B is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.180 H 335.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9F2E8B
RGBrgb(159, 46, 139)
HSLhsl(311, 55%, 40%)
HSVhsv(311, 71%, 62%)
CMYKcmyk(0%, 71.1%, 12.6%, 37.6%)
CIE-LABlab(39.90, 56.13, -26.95)
CIE-LCHlch(39.90, 62.26, 334.35°)
OKLaboklab(50.56% 0.1643 -0.0734)
OKLCHoklch(50.56% 0.18 335.9)
XYZxyz(19.9355, 11.1908, 25.5312)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E8B #2E9F42
analogous
#7A2E9F #9F2E8B #9F2E53
triadic
#9F2E8B #8B9F2E #2E8B9F
tetradic
#9F2E8B #9F7A2E #2E9F42 #2E539F
square
#9F2E8B #9F7A2E #2E9F42 #2E539F
split-complementary
#9F2E8B #539F2E #2E9F7A
monochromatic
#401338 #702062 #9F2E8B #C842B1 #D671C4

Accessibility & contrast

On white

6.49
#9F2E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9F2E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E8B
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E8B#FFFFFF#000000##FFFFFF
##9F2E8B1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#566488
Tritanopia (blue-blind)
#A73659
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e8b;
/* rgb */ color: rgb(159, 46, 139);
/* oklch */ color: oklch(50.6% 0.180 335.9);
Tailwind
colors: {
  custom: {
    50: '#bf71ad',
    500: '#9f2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e8b;
$custom-light: #bf71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e8b",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 310.619,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50562,
    "c": 0.17997,
    "h": 335.9
  },
  "luminance": 0.11189
}

Semantic roles & 50–950 ramp

primary
#9F2E8B
secondary
#6BBE7A
accent
#DE6449
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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