#9E2AB6#9E2AB6

#9E2AB6 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.218 H 320.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9E2AB6
RGBrgb(158, 42, 182)
HSLhsl(290, 63%, 44%)
HSVhsv(290, 77%, 71%)
CMYKcmyk(13.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(41.69, 64.56, -49.93)
CIE-LCHlch(41.69, 81.62, 322.28°)
OKLaboklab(52.6% 0.1669 -0.1401)
OKLCHoklch(52.6% 0.218 320)
XYZxyz(23.3710, 12.3036, 45.3907)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2AB6 #42B62A
analogous
#582AB6 #9E2AB6 #B62A88
triadic
#9E2AB6 #B69E2A #2AB69E
tetradic
#9E2AB6 #B6582A #42B62A #2A88B6
square
#9E2AB6 #B6582A #42B62A #2A88B6
split-complementary
#9E2AB6 #88B62A #2AB658
monochromatic
#481353 #731F84 #9E2AB6 #BD48D5 #CF7AE0

Accessibility & contrast

On white

6.07
#9E2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9E2AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2AB6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2AB6#FFFFFF#000000##FFFFFF
##9E2AB61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#3866B3
Tritanopia (blue-blind)
#9E476F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e2ab6;
/* rgb */ color: rgb(158, 42, 182);
/* oklch */ color: oklch(52.6% 0.218 320.0);
Tailwind
colors: {
  custom: {
    50: '#bf71cd',
    500: '#9e2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #9e2ab6;
$custom-light: #bf71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2ab6",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 289.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.526,
    "c": 0.21794,
    "h": 320
  },
  "luminance": 0.12302
}

Semantic roles & 50–950 ramp

primary
#9E2AB6
secondary
#82C873
accent
#E6425E
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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