#9E218B#9E218B

#9E218B is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.194 H 335.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9E218B
RGBrgb(158, 33, 139)
HSLhsl(309, 65%, 37%)
HSVhsv(309, 79%, 62%)
CMYKcmyk(0%, 79.1%, 12%, 38%)
CIE-LABlab(38.24, 60.12, -29.57)
CIE-LCHlch(38.24, 67.00, 333.81°)
OKLaboklab(49.33% 0.1759 -0.0808)
OKLCHoklch(49.33% 0.194 335.3)
XYZxyz(19.3049, 10.2227, 25.3775)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E218B #219E34
analogous
#73219E #9E218B #9E214D
triadic
#9E218B #8B9E21 #218B9E
tetradic
#9E218B #9E7321 #219E34 #214D9E
square
#9E218B #9E7321 #219E34 #214D9E
split-complementary
#9E218B #4D9E21 #219E73
monochromatic
#390C32 #6B165E #9E218B #D12CB8 #DD5CC9

Accessibility & contrast

On white

6.90
#9E218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9E218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E218B
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E218B#FFFFFF#000000##FFFFFF
##9E218B1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8E
Deuteranopia (green-blind)
#506088
Tritanopia (blue-blind)
#A62C55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e218b;
/* rgb */ color: rgb(158, 33, 139);
/* oklch */ color: oklch(49.3% 0.194 335.3);
Tailwind
colors: {
  custom: {
    50: '#be6cad',
    500: '#9e218b',
    950: '#000000',
  },
}
SCSS
$custom: #9e218b;
$custom-light: #be6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e218b",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 309.12,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49332,
    "c": 0.19354,
    "h": 335.3
  },
  "luminance": 0.10221
}

Semantic roles & 50–950 ramp

primary
#9E218B
secondary
#59C169
accent
#E8593F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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