#9E2F8A#9E2F8A

#9E2F8A is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.177 H 336.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9E2F8A
RGBrgb(158, 47, 138)
HSLhsl(311, 54%, 40%)
HSVhsv(311, 70%, 62%)
CMYKcmyk(0%, 70.3%, 12.7%, 38%)
CIE-LABlab(39.81, 55.35, -26.49)
CIE-LCHlch(39.81, 61.36, 334.43°)
OKLaboklab(50.45% 0.1621 -0.0721)
OKLCHoklch(50.45% 0.177 336)
XYZxyz(19.7048, 11.1388, 25.1520)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F8A #2F9E43
analogous
#7A2F9E #9E2F8A #9E2F52
triadic
#9E2F8A #8A9E2F #2F8A9E
tetradic
#9E2F8A #9E7A2F #2F9E43 #2F529E
square
#9E2F8A #9E7A2F #2F9E43 #2F529E
split-complementary
#9E2F8A #529E2F #2F9E7A
monochromatic
#401338 #6F2161 #9E2F8A #C743AF #D572C3

Accessibility & contrast

On white

6.51
#9E2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9E2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F8A
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F8A#FFFFFF#000000##FFFFFF
##9E2F8A1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#A63658
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e2f8a;
/* rgb */ color: rgb(158, 47, 138);
/* oklch */ color: oklch(50.4% 0.177 336.0);
Tailwind
colors: {
  custom: {
    50: '#be71ac',
    500: '#9e2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f8a;
$custom-light: #be71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f8a",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 310.811,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5045,
    "c": 0.17738,
    "h": 336
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#9E2F8A
secondary
#6CBD7B
accent
#DE654A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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