#9E2F87#9E2F87

#9E2F87 is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.3% C 0.175 H 337.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9E2F87
RGBrgb(158, 47, 135)
HSLhsl(312, 54%, 40%)
HSVhsv(312, 70%, 62%)
CMYKcmyk(0%, 70.3%, 14.6%, 38%)
CIE-LABlab(39.67, 54.89, -24.87)
CIE-LCHlch(39.67, 60.26, 335.63°)
OKLaboklab(50.3% 0.1617 -0.0675)
OKLCHoklch(50.3% 0.175 337.3)
XYZxyz(19.4906, 11.0532, 24.0239)
Luminance0.1105 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F87 #2F9E46
analogous
#7D2F9E #9E2F87 #9E2F50
triadic
#9E2F87 #879E2F #2F879E
tetradic
#9E2F87 #9E7D2F #2F9E46 #2F509E
square
#9E2F87 #9E7D2F #2F9E46 #2F509E
split-complementary
#9E2F87 #509E2F #2F9E7D
monochromatic
#401336 #6F215F #9E2F87 #C743AC #D572C1

Accessibility & contrast

On white

6.54
#9E2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9E2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F87
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F87#FFFFFF#000000##FFFFFF
##9E2F871.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538A
Deuteranopia (green-blind)
#576484
Tritanopia (blue-blind)
#A63557
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2f87;
/* rgb */ color: rgb(158, 47, 135);
/* oklch */ color: oklch(50.3% 0.175 337.3);
Tailwind
colors: {
  custom: {
    50: '#be71aa',
    500: '#9e2f87',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f87;
$custom-light: #be71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f87",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 312.432,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.503,
    "c": 0.1752,
    "h": 337.3
  },
  "luminance": 0.11051
}

Semantic roles & 50–950 ramp

primary
#9E2F87
secondary
#6CBD7D
accent
#DE694A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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