#9E2A7D#9E2A7D

#9E2A7D is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.3% C 0.174 H 341.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9E2A7D
RGBrgb(158, 42, 125)
HSLhsl(317, 58%, 39%)
HSVhsv(317, 73%, 62%)
CMYKcmyk(0%, 73.4%, 20.9%, 38%)
CIE-LABlab(38.56, 55.26, -20.41)
CIE-LCHlch(38.56, 58.91, 339.72°)
OKLaboklab(49.35% 0.1656 -0.0548)
OKLCHoklch(49.35% 0.174 341.7)
XYZxyz(18.6308, 10.4076, 20.4257)
Luminance0.1041 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A7D #2A9E4B
analogous
#852A9E #9E2A7D #9E2A43
triadic
#9E2A7D #7D9E2A #2A7D9E
tetradic
#9E2A7D #9E852A #2A9E4B #2A439E
square
#9E2A7D #9E852A #2A9E4B #2A439E
split-complementary
#9E2A7D #439E2A #2A9E85
monochromatic
#3D1031 #6E1D57 #9E2A7D #CB3AA2 #D86BB9

Accessibility & contrast

On white

6.82
#9E2A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E2A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A7D
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A7D#FFFFFF#000000##FFFFFF
##9E2A7D1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344F7F
Deuteranopia (green-blind)
#59627A
Tritanopia (blue-blind)
#A82C50
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e2a7d;
/* rgb */ color: rgb(158, 42, 125);
/* oklch */ color: oklch(49.3% 0.174 341.7);
Tailwind
colors: {
  custom: {
    50: '#be6fa3',
    500: '#9e2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a7d;
$custom-light: #be6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a7d",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 317.069,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49347,
    "c": 0.17447,
    "h": 341.7
  },
  "luminance": 0.10406
}

Semantic roles & 50–950 ramp

primary
#9E2A7D
secondary
#66BE7F
accent
#E17347
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9E2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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