#9E2AA3#9E2AA3

#9E2AA3 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.4% C 0.202 H 326.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9E2AA3
RGBrgb(158, 42, 163)
HSLhsl(298, 59%, 40%)
HSVhsv(298, 74%, 64%)
CMYKcmyk(3.1%, 74.2%, 0%, 36.1%)
CIE-LABlab(40.53, 61.19, -40.51)
CIE-LCHlch(40.53, 73.38, 326.50°)
OKLaboklab(51.4% 0.1683 -0.1126)
OKLCHoklch(51.4% 0.202 326.2)
XYZxyz(21.5390, 11.5708, 35.7422)
Luminance0.1157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2AA3 #2FA32A
analogous
#622AA3 #9E2AA3 #A32A6B
triadic
#9E2AA3 #A39E2A #2AA39E
tetradic
#9E2AA3 #A3622A #2FA32A #2A6BA3
square
#9E2AA3 #A3622A #2FA32A #2A6BA3
split-complementary
#9E2AA3 #6BA32A #2AA362
monochromatic
#401142 #6F1D72 #9E2AA3 #C73DCD #D56EDA

Accessibility & contrast

On white

6.34
#9E2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9E2AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2AA3
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2AA3#FFFFFF#000000##FFFFFF
##9E2AA31.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0556A6
Deuteranopia (green-blind)
#4664A0
Tritanopia (blue-blind)
#A23E65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e2aa3;
/* rgb */ color: rgb(158, 42, 163);
/* oklch */ color: oklch(51.4% 0.202 326.2);
Tailwind
colors: {
  custom: {
    50: '#be70bf',
    500: '#9e2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #9e2aa3;
$custom-light: #be70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2aa3",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 297.521,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51395,
    "c": 0.20247,
    "h": 326.2
  },
  "luminance": 0.11569
}

Semantic roles & 50–950 ramp

primary
#9E2AA3
secondary
#6CC068
accent
#E2464C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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