#9E218D#9E218D

#9E218D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.195 H 334.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9E218D
RGBrgb(158, 33, 141)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 62%)
CMYKcmyk(0%, 79.1%, 10.8%, 38%)
CIE-LABlab(38.34, 60.42, -30.63)
CIE-LCHlch(38.34, 67.74, 333.12°)
OKLaboklab(49.44% 0.176 -0.0839)
OKLCHoklch(49.44% 0.195 334.5)
XYZxyz(19.4524, 10.2817, 26.1542)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E218D #219E32
analogous
#71219E #9E218D #9E214F
triadic
#9E218D #8D9E21 #218D9E
tetradic
#9E218D #9E7121 #219E32 #214F9E
square
#9E218D #9E7121 #219E32 #214F9E
split-complementary
#9E218D #4F9E21 #219E71
monochromatic
#390C33 #6B1660 #9E218D #D12CBA #DD5CCC

Accessibility & contrast

On white

6.87
#9E218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9E218D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E218D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E218D#FFFFFF#000000##FFFFFF
##9E218D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#A62D56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e218d;
/* rgb */ color: rgb(158, 33, 141);
/* oklch */ color: oklch(49.4% 0.195 334.5);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9e218d',
    950: '#000000',
  },
}
SCSS
$custom: #9e218d;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e218d",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 308.16,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4944,
    "c": 0.19495,
    "h": 334.5
  },
  "luminance": 0.1028
}

Semantic roles & 50–950 ramp

primary
#9E218D
secondary
#59C168
accent
#E8563F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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