#9E2DB2#9E2DB2

#9E2DB2 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.212 H 321.1°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9E2DB2
RGBrgb(158, 45, 178)
HSLhsl(291, 60%, 44%)
HSVhsv(291, 75%, 70%)
CMYKcmyk(11.2%, 74.7%, 0%, 30.2%)
CIE-LABlab(41.78, 62.84, -47.42)
CIE-LCHlch(41.78, 78.73, 322.96°)
OKLaboklab(52.58% 0.1647 -0.1328)
OKLCHoklch(52.58% 0.212 321.1)
XYZxyz(23.0739, 12.3615, 43.2815)
Luminance0.1236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2DB2 #41B22D
analogous
#5B2DB2 #9E2DB2 #B22D83
triadic
#9E2DB2 #B29E2D #2DB29E
tetradic
#9E2DB2 #B25B2D #41B22D #2D83B2
square
#9E2DB2 #B25B2D #41B22D #2D83B2
split-complementary
#9E2DB2 #83B22D #2DB25B
monochromatic
#471450 #732181 #9E2DB2 #BD4BD1 #CF7CDE

Accessibility & contrast

On white

6.05
#9E2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9E2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2DB2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2DB2#FFFFFF#000000##FFFFFF
##9E2DB21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#9F476E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e2db2;
/* rgb */ color: rgb(158, 45, 178);
/* oklch */ color: oklch(52.6% 0.212 321.1);
Tailwind
colors: {
  custom: {
    50: '#bf72ca',
    500: '#9e2db2',
    950: '#000000',
  },
}
SCSS
$custom: #9e2db2;
$custom-light: #bf72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2db2",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 290.977,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.21155,
    "h": 321.1
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#9E2DB2
secondary
#81C675
accent
#E3455D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9E2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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