#9E2A7B#9E2A7B

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

Color values

HEX#9E2A7B
RGBrgb(158, 42, 123)
HSLhsl(318, 58%, 39%)
HSVhsv(318, 73%, 62%)
CMYKcmyk(0%, 73.4%, 22.2%, 38%)
CIE-LABlab(38.48, 54.98, -19.31)
CIE-LCHlch(38.48, 58.27, 340.65°)
OKLaboklab(49.25% 0.1653 -0.0517)
OKLCHoklch(49.25% 0.173 342.6)
XYZxyz(18.5043, 10.3570, 19.7596)
Luminance0.1036 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A7B #2A9E4D
analogous
#872A9E #9E2A7B #9E2A41
triadic
#9E2A7B #7B9E2A #2A7B9E
tetradic
#9E2A7B #9E872A #2A9E4D #2A419E
square
#9E2A7B #9E872A #2A9E4D #2A419E
split-complementary
#9E2A7B #419E2A #2A9E87
monochromatic
#3D1030 #6E1D55 #9E2A7B #CB3A9F #D86BB7

Accessibility & contrast

On white

6.84
#9E2A7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9E2A7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A7B
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A7B#FFFFFF#000000##FFFFFF
##9E2A7B1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#596178
Tritanopia (blue-blind)
#A82B4F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e2a7b;
/* rgb */ color: rgb(158, 42, 123);
/* oklch */ color: oklch(49.3% 0.173 342.6);
Tailwind
colors: {
  custom: {
    50: '#be6fa1',
    500: '#9e2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a7b;
$custom-light: #be6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a7b",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 318.103,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49254,
    "c": 0.17318,
    "h": 342.6
  },
  "luminance": 0.10355
}

Semantic roles & 50–950 ramp

primary
#9E2A7B
secondary
#66BE80
accent
#E17547
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9E2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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