#9E1B98#9E1B98

#9E1B98 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.208 H 330.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9E1B98
RGBrgb(158, 27, 152)
HSLhsl(303, 71%, 36%)
HSVhsv(303, 83%, 62%)
CMYKcmyk(0%, 82.9%, 3.8%, 38%)
CIE-LABlab(38.41, 63.64, -37.23)
CIE-LCHlch(38.41, 73.73, 329.67°)
OKLaboklab(49.69% 0.1806 -0.1029)
OKLCHoklch(49.69% 0.208 330.3)
XYZxyz(20.1599, 10.3216, 30.6302)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1B98 #1B9E21
analogous
#631B9E #9E1B98 #9E1B57
triadic
#9E1B98 #989E1B #1B989E
tetradic
#9E1B98 #9E631B #1B9E21 #1B579E
square
#9E1B98 #9E631B #1B9E21 #1B579E
split-complementary
#9E1B98 #579E1B #1B9E63
monochromatic
#350933 #6A1266 #9E1B98 #D224CA #E152DB

Accessibility & contrast

On white

6.85
#9E1B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E1B98
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1B98#FFFFFF#000000##FFFFFF
##9E1B981.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#476095
Tritanopia (blue-blind)
#A4305B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e1b98;
/* rgb */ color: rgb(158, 27, 152);
/* oklch */ color: oklch(49.7% 0.208 330.3);
Tailwind
colors: {
  custom: {
    50: '#bf6ab7',
    500: '#9e1b98',
    950: '#000000',
  },
}
SCSS
$custom: #9e1b98;
$custom-light: #bf6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1b98",
  "rgb": {
    "r": 158,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 302.748,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49686,
    "c": 0.20791,
    "h": 330.3
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#9E1B98
secondary
#51C456
accent
#EE423A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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