#9E2D8A#9E2D8A

#9E2D8A is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.3% C 0.180 H 336.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9E2D8A
RGBrgb(158, 45, 138)
HSLhsl(311, 56%, 40%)
HSVhsv(311, 72%, 62%)
CMYKcmyk(0%, 71.5%, 12.7%, 38%)
CIE-LABlab(39.55, 56.09, -26.90)
CIE-LCHlch(39.55, 62.20, 334.38°)
OKLaboklab(50.26% 0.1642 -0.0733)
OKLCHoklch(50.26% 0.18 336)
XYZxyz(19.6267, 10.9826, 25.1260)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2D8A #2D9E41
analogous
#792D9E #9E2D8A #9E2D52
triadic
#9E2D8A #8A9E2D #2D8A9E
tetradic
#9E2D8A #9E792D #2D9E41 #2D529E
square
#9E2D8A #9E792D #2D9E41 #2D529E
split-complementary
#9E2D8A #529E2D #2D9E79
monochromatic
#3F1237 #6E1F60 #9E2D8A #C940B0 #D66FC4

Accessibility & contrast

On white

6.57
#9E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9E2D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2D8A
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2D8A#FFFFFF#000000##FFFFFF
##9E2D8A1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#556387
Tritanopia (blue-blind)
#A63558
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2d8a;
/* rgb */ color: rgb(158, 45, 138);
/* oklch */ color: oklch(50.3% 0.180 336.0);
Tailwind
colors: {
  custom: {
    50: '#be70ac',
    500: '#9e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9e2d8a;
$custom-light: #be70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2d8a",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 310.619,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50261,
    "c": 0.17985,
    "h": 336
  },
  "luminance": 0.10981
}

Semantic roles & 50–950 ramp

primary
#9E2D8A
secondary
#69BD78
accent
#DF6349
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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