#9F2E8A#9F2E8A

#9F2E8A is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.179 H 336.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#9F2E8A
RGBrgb(159, 46, 138)
HSLhsl(311, 55%, 40%)
HSVhsv(311, 71%, 62%)
CMYKcmyk(0%, 71.1%, 13.2%, 37.6%)
CIE-LABlab(39.85, 55.97, -26.41)
CIE-LCHlch(39.85, 61.89, 334.74°)
OKLaboklab(50.51% 0.1642 -0.0719)
OKLCHoklch(50.51% 0.179 336.4)
XYZxyz(19.8628, 11.1617, 25.1481)
Luminance0.1116 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E8A #2E9F43
analogous
#7B2E9F #9F2E8A #9F2E52
triadic
#9F2E8A #8A9F2E #2E8A9F
tetradic
#9F2E8A #9F7B2E #2E9F43 #2E529F
square
#9F2E8A #9F7B2E #2E9F43 #2E529F
split-complementary
#9F2E8A #529F2E #2E9F7B
monochromatic
#401338 #702061 #9F2E8A #C842AF #D671C3

Accessibility & contrast

On white

6.50
#9F2E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9F2E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E8A
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E8A#FFFFFF#000000##FFFFFF
##9F2E8A1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#A73558
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e8a;
/* rgb */ color: rgb(159, 46, 138);
/* oklch */ color: oklch(50.5% 0.179 336.4);
Tailwind
colors: {
  custom: {
    50: '#bf71ac',
    500: '#9f2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e8a;
$custom-light: #bf71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e8a",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 311.15,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50511,
    "c": 0.17924,
    "h": 336.4
  },
  "luminance": 0.1116
}

Semantic roles & 50–950 ramp

primary
#9F2E8A
secondary
#6BBE7B
accent
#DE6549
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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