#9E218A#9E218A

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

Color values

HEX#9E218A
RGBrgb(158, 33, 138)
HSLhsl(310, 65%, 37%)
HSVhsv(310, 79%, 62%)
CMYKcmyk(0%, 79.1%, 12.7%, 38%)
CIE-LABlab(38.19, 59.97, -29.03)
CIE-LCHlch(38.19, 66.63, 334.17°)
OKLaboklab(49.28% 0.1758 -0.0793)
OKLCHoklch(49.28% 0.193 335.7)
XYZxyz(19.2322, 10.1936, 24.9945)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E218A #219E35
analogous
#74219E #9E218A #9E214C
triadic
#9E218A #8A9E21 #218A9E
tetradic
#9E218A #9E7421 #219E35 #214C9E
square
#9E218A #9E7421 #219E35 #214C9E
split-complementary
#9E218A #4C9E21 #219E74
monochromatic
#390C32 #6B165E #9E218A #D12CB6 #DD5CC8

Accessibility & contrast

On white

6.91
#9E218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E218A
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E218A#FFFFFF#000000##FFFFFF
##9E218A1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A62C54
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e218a;
/* rgb */ color: rgb(158, 33, 138);
/* oklch */ color: oklch(49.3% 0.193 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6cac',
    500: '#9e218a',
    950: '#000000',
  },
}
SCSS
$custom: #9e218a;
$custom-light: #bf6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e218a",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 309.6,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49278,
    "c": 0.19284,
    "h": 335.7
  },
  "luminance": 0.10192
}

Semantic roles & 50–950 ramp

primary
#9E218A
secondary
#59C16A
accent
#E85A3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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