#9E2A9B#9E2A9B

#9E2A9B is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.9% C 0.196 H 329.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9E2A9B
RGBrgb(158, 42, 155)
HSLhsl(302, 58%, 39%)
HSVhsv(302, 73%, 62%)
CMYKcmyk(0%, 73.4%, 1.9%, 38%)
CIE-LABlab(40.07, 59.84, -36.42)
CIE-LCHlch(40.07, 70.05, 328.68°)
OKLaboklab(50.92% 0.1684 -0.1007)
OKLCHoklch(50.92% 0.196 329.1)
XYZxyz(20.8447, 11.2931, 32.0859)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A9B #2A9E2D
analogous
#672A9E #9E2A9B #9E2A61
triadic
#9E2A9B #9B9E2A #2A9B9E
tetradic
#9E2A9B #9E672A #2A9E2D #2A619E
square
#9E2A9B #9E672A #2A9E2D #2A619E
split-complementary
#9E2A9B #619E2A #2A9E67
monochromatic
#3D103C #6E1D6C #9E2A9B #CB3AC7 #D86BD5

Accessibility & contrast

On white

6.44
#9E2A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9E2A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A9B
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A9B#FFFFFF#000000##FFFFFF
##9E2A9B1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18559E
Deuteranopia (green-blind)
#4B6498
Tritanopia (blue-blind)
#A43B60
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9e2a9b;
/* rgb */ color: rgb(158, 42, 155);
/* oklch */ color: oklch(50.9% 0.196 329.1);
Tailwind
colors: {
  custom: {
    50: '#be70b9',
    500: '#9e2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a9b;
$custom-light: #be70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a9b",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 301.552,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50922,
    "c": 0.19617,
    "h": 329.1
  },
  "luminance": 0.11292
}

Semantic roles & 50–950 ramp

primary
#9E2A9B
secondary
#66BE68
accent
#E14B47
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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