#9E2DB7#9E2DB7

#9E2DB7 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.216 H 319.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9E2DB7
RGBrgb(158, 45, 183)
HSLhsl(289, 61%, 45%)
HSVhsv(289, 75%, 72%)
CMYKcmyk(13.7%, 75.4%, 0%, 28.2%)
CIE-LABlab(42.10, 63.76, -49.87)
CIE-LCHlch(42.10, 80.94, 321.97°)
OKLaboklab(52.91% 0.1642 -0.1399)
OKLCHoklch(52.91% 0.216 319.6)
XYZxyz(23.5851, 12.5660, 45.9737)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2DB7 #46B72D
analogous
#592DB7 #9E2DB7 #B72D8B
triadic
#9E2DB7 #B79E2D #2DB79E
tetradic
#9E2DB7 #B7592D #46B72D #2D8BB7
square
#9E2DB7 #B7592D #46B72D #2D8BB7
split-complementary
#9E2DB7 #8BB72D #2DB759
monochromatic
#491555 #742186 #9E2DB7 #BB4ED3 #CE7FDF

Accessibility & contrast

On white

5.98
#9E2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9E2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2DB7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2DB7#FFFFFF#000000##FFFFFF
##9E2DB71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#9E4971
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e2db7;
/* rgb */ color: rgb(158, 45, 183);
/* oklch */ color: oklch(52.9% 0.216 319.6);
Tailwind
colors: {
  custom: {
    50: '#bf72cd',
    500: '#9e2db7',
    950: '#000000',
  },
}
SCSS
$custom: #9e2db7;
$custom-light: #bf72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2db7",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 289.13,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52909,
    "c": 0.21576,
    "h": 319.6
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#9E2DB7
secondary
#86C878
accent
#E44461
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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