#9E1D98#9E1D98

#9E1D98 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.206 H 330.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9E1D98
RGBrgb(158, 29, 152)
HSLhsl(303, 69%, 37%)
HSVhsv(303, 82%, 62%)
CMYKcmyk(0%, 81.6%, 3.8%, 38%)
CIE-LABlab(38.58, 63.16, -36.97)
CIE-LCHlch(38.58, 73.18, 329.66°)
OKLaboklab(49.8% 0.1792 -0.1022)
OKLCHoklch(49.8% 0.206 330.3)
XYZxyz(20.2073, 10.4165, 30.6460)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1D98 #1D9E23
analogous
#641D9E #9E1D98 #9E1D58
triadic
#9E1D98 #989E1D #1D989E
tetradic
#9E1D98 #9E641D #1D9E23 #1D589E
square
#9E1D98 #9E641D #1D9E23 #1D589E
split-complementary
#9E1D98 #589E1D #1D9E64
monochromatic
#370A35 #6A1466 #9E1D98 #D226CA #E056D9

Accessibility & contrast

On white

6.81
#9E1D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E1D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1D98
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1D98#FFFFFF#000000##FFFFFF
##9E1D981.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A4315B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1d98;
/* rgb */ color: rgb(158, 29, 152);
/* oklch */ color: oklch(49.8% 0.206 330.3);
Tailwind
colors: {
  custom: {
    50: '#bf6bb7',
    500: '#9e1d98',
    950: '#000000',
  },
}
SCSS
$custom: #9e1d98;
$custom-light: #bf6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1d98",
  "rgb": {
    "r": 158,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 302.791,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.20633,
    "h": 330.3
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#9E1D98
secondary
#54C359
accent
#EC443C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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