#9E2AB5#9E2AB5

#9E2AB5 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.217 H 320.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9E2AB5
RGBrgb(158, 42, 181)
HSLhsl(290, 62%, 44%)
HSVhsv(290, 77%, 71%)
CMYKcmyk(12.7%, 76.8%, 0%, 29%)
CIE-LABlab(41.63, 64.38, -49.45)
CIE-LCHlch(41.63, 81.17, 322.47°)
OKLaboklab(52.53% 0.167 -0.1387)
OKLCHoklch(52.53% 0.217 320.3)
XYZxyz(23.2680, 12.2625, 44.8484)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2AB5 #41B52A
analogous
#582AB5 #9E2AB5 #B52A86
triadic
#9E2AB5 #B59E2A #2AB59E
tetradic
#9E2AB5 #B5582A #41B52A #2A86B5
square
#9E2AB5 #B5582A #41B52A #2A86B5
split-complementary
#9E2AB5 #86B52A #2AB558
monochromatic
#471352 #731E83 #9E2AB5 #BD48D4 #CF79E0

Accessibility & contrast

On white

6.08
#9E2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9E2AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2AB5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2AB5#FFFFFF#000000##FFFFFF
##9E2AB51.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#3866B2
Tritanopia (blue-blind)
#9F476F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e2ab5;
/* rgb */ color: rgb(158, 42, 181);
/* oklch */ color: oklch(52.5% 0.217 320.3);
Tailwind
colors: {
  custom: {
    50: '#bf71cc',
    500: '#9e2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ab5;
$custom-light: #bf71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ab5",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 290.072,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52534,
    "c": 0.2171,
    "h": 320.3
  },
  "luminance": 0.12261
}

Semantic roles & 50–950 ramp

primary
#9E2AB5
secondary
#81C873
accent
#E5425D
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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