#9E2A8E#9E2A8E

#9E2A8E is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.186 H 334.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9E2A8E
RGBrgb(158, 42, 142)
HSLhsl(308, 58%, 39%)
HSVhsv(308, 73%, 62%)
CMYKcmyk(0%, 73.4%, 10.1%, 38%)
CIE-LABlab(39.38, 57.76, -29.62)
CIE-LCHlch(39.38, 64.91, 332.85°)
OKLaboklab(50.2% 0.1678 -0.081)
OKLCHoklch(50.2% 0.186 334.2)
XYZxyz(19.8112, 10.8797, 26.6425)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2A8E #2A9E3A
analogous
#742A9E #9E2A8E #9E2A54
triadic
#9E2A8E #8E9E2A #2A8E9E
tetradic
#9E2A8E #9E742A #2A9E3A #2A549E
square
#9E2A8E #9E742A #2A9E3A #2A549E
split-complementary
#9E2A8E #549E2A #2A9E74
monochromatic
#3D1037 #6E1D63 #9E2A8E #CB3AB7 #D86BC9

Accessibility & contrast

On white

6.61
#9E2A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9E2A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2A8E
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2A8E#FFFFFF#000000##FFFFFF
##9E2A8E1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#52638B
Tritanopia (blue-blind)
#A63459
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2a8e;
/* rgb */ color: rgb(158, 42, 142);
/* oklch */ color: oklch(50.2% 0.186 334.2);
Tailwind
colors: {
  custom: {
    50: '#be6faf',
    500: '#9e2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #9e2a8e;
$custom-light: #be6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2a8e",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 308.276,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.502,
    "c": 0.1863,
    "h": 334.2
  },
  "luminance": 0.10878
}

Semantic roles & 50–950 ramp

primary
#9E2A8E
secondary
#66BE72
accent
#E15C47
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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