#9E2E8B#9E2E8B

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

Color values

HEX#9E2E8B
RGBrgb(158, 46, 139)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 70.9%, 12%, 38%)
CIE-LABlab(39.73, 55.88, -27.23)
CIE-LCHlch(39.73, 62.16, 334.02°)
OKLaboklab(50.41% 0.1633 -0.0742)
OKLCHoklch(50.41% 0.179 335.5)
XYZxyz(19.7380, 11.0889, 25.5219)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2E8B #2E9E41
analogous
#792E9E #9E2E8B #9E2E53
triadic
#9E2E8B #8B9E2E #2E8B9E
tetradic
#9E2E8B #9E792E #2E9E41 #2E539E
square
#9E2E8B #9E792E #2E9E41 #2E539E
split-complementary
#9E2E8B #539E2E #2E9E79
monochromatic
#3F1238 #6F2061 #9E2E8B #C841B1 #D671C4

Accessibility & contrast

On white

6.53
#9E2E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9E2E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2E8B
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2E8B#FFFFFF#000000##FFFFFF
##9E2E8B1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#556488
Tritanopia (blue-blind)
#A63659
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e2e8b;
/* rgb */ color: rgb(158, 46, 139);
/* oklch */ color: oklch(50.4% 0.179 335.5);
Tailwind
colors: {
  custom: {
    50: '#be71ad',
    500: '#9e2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #9e2e8b;
$custom-light: #be71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2e8b",
  "rgb": {
    "r": 158,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 310.179,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.50406,
    "c": 0.17936,
    "h": 335.5
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#9E2E8B
secondary
#6BBD79
accent
#DE634A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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