#9E2A78#9E2A78

#9E2A78 is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.1% C 0.171 H 344.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9E2A78
RGBrgb(158, 42, 120)
HSLhsl(320, 58%, 39%)
HSVhsv(320, 73%, 62%)
CMYKcmyk(0%, 73.4%, 24.1%, 38%)
CIE-LABlab(38.35, 54.57, -17.64)
CIE-LCHlch(38.35, 57.35, 342.09°)
OKLaboklab(49.12% 0.1647 -0.0471)
OKLCHoklch(49.12% 0.171 344.1)
XYZxyz(18.3194, 10.2830, 18.7857)
Luminance0.1028 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A78 #2A9E50
analogous
#8A2A9E #9E2A78 #9E2A3E
triadic
#9E2A78 #789E2A #2A789E
tetradic
#9E2A78 #9E8A2A #2A9E50 #2A3E9E
square
#9E2A78 #9E8A2A #2A9E50 #2A3E9E
split-complementary
#9E2A78 #3E9E2A #2A9E8A
monochromatic
#3D102F #6E1D53 #9E2A78 #CB3A9B #D86BB4

Accessibility & contrast

On white

6.87
#9E2A78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9E2A78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A78
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A78#FFFFFF#000000##FFFFFF
##9E2A781.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374E7A
Deuteranopia (green-blind)
#5A6175
Tritanopia (blue-blind)
#A8294D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e2a78;
/* rgb */ color: rgb(158, 42, 120);
/* oklch */ color: oklch(49.1% 0.171 344.1);
Tailwind
colors: {
  custom: {
    50: '#be6f9f',
    500: '#9e2a78',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a78;
$custom-light: #be6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a78",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 319.655,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49117,
    "c": 0.17129,
    "h": 344.1
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#9E2A78
secondary
#66BE83
accent
#E17947
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9E2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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