#9E2198#9E2198

#9E2198 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.203 H 330.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9E2198
RGBrgb(158, 33, 152)
HSLhsl(303, 65%, 37%)
HSVhsv(303, 79%, 62%)
CMYKcmyk(0%, 79.1%, 3.8%, 38%)
CIE-LABlab(38.94, 62.11, -36.39)
CIE-LCHlch(38.94, 71.99, 329.63°)
OKLaboklab(50.06% 0.1762 -0.1005)
OKLCHoklch(50.06% 0.203 330.3)
XYZxyz(20.3118, 10.6254, 30.6808)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2198 #219E27
analogous
#66219E #9E2198 #9E215A
triadic
#9E2198 #989E21 #21989E
tetradic
#9E2198 #9E6621 #219E27 #215A9E
square
#9E2198 #9E6621 #219E27 #215A9E
split-complementary
#9E2198 #5A9E21 #219E66
monochromatic
#390C37 #6B1667 #9E2198 #D12CC9 #DD5CD7

Accessibility & contrast

On white

6.72
#9E2198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9E2198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2198
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2198#FFFFFF#000000##FFFFFF
##9E21981.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C519B
Deuteranopia (green-blind)
#496295
Tritanopia (blue-blind)
#A4335C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e2198;
/* rgb */ color: rgb(158, 33, 152);
/* oklch */ color: oklch(50.1% 0.203 330.3);
Tailwind
colors: {
  custom: {
    50: '#bf6cb7',
    500: '#9e2198',
    950: '#000000',
  },
}
SCSS
$custom: #9e2198;
$custom-light: #bf6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2198",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 302.88,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.50062,
    "c": 0.20289,
    "h": 330.3
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#9E2198
secondary
#59C15E
accent
#E8483F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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