#9E2C8B#9E2C8B

#9E2C8B is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.182 H 335.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9E2C8B
RGBrgb(158, 44, 139)
HSLhsl(310, 56%, 40%)
HSVhsv(310, 72%, 62%)
CMYKcmyk(0%, 72.2%, 12%, 38%)
CIE-LABlab(39.47, 56.60, -27.63)
CIE-LCHlch(39.47, 62.99, 333.98°)
OKLaboklab(50.22% 0.1654 -0.0754)
OKLCHoklch(50.22% 0.182 335.5)
XYZxyz(19.6617, 10.9363, 25.4965)
Luminance0.1094 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2C8B #2C9E3F
analogous
#782C9E #9E2C8B #9E2C52
triadic
#9E2C8B #8B9E2C #2C8B9E
tetradic
#9E2C8B #9E782C #2C9E3F #2C529E
square
#9E2C8B #9E782C #2C9E3F #2C529E
split-complementary
#9E2C8B #529E2C #2C9E78
monochromatic
#3E1137 #6E1F61 #9E2C8B #C93EB2 #D76EC5

Accessibility & contrast

On white

6.59
#9E2C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9E2C8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2C8B
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2C8B#FFFFFF#000000##FFFFFF
##9E2C8B1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528E
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#A63458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2c8b;
/* rgb */ color: rgb(158, 44, 139);
/* oklch */ color: oklch(50.2% 0.182 335.5);
Tailwind
colors: {
  custom: {
    50: '#be70ad',
    500: '#9e2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #9e2c8b;
$custom-light: #be70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2c8b",
  "rgb": {
    "r": 158,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 310,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.5022,
    "c": 0.18178,
    "h": 335.5
  },
  "luminance": 0.10935
}

Semantic roles & 50–950 ramp

primary
#9E2C8B
secondary
#68BE76
accent
#E06148
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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