#9E2D98#9E2D98

#9E2D98 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.0% C 0.190 H 330.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9E2D98
RGBrgb(158, 45, 152)
HSLhsl(303, 56%, 40%)
HSVhsv(303, 72%, 62%)
CMYKcmyk(0%, 71.5%, 3.8%, 38%)
CIE-LABlab(40.27, 58.31, -34.29)
CIE-LCHlch(40.27, 67.65, 329.54°)
OKLaboklab(51.01% 0.1653 -0.0945)
OKLCHoklch(51.01% 0.19 330.2)
XYZxyz(20.7063, 11.4145, 30.8123)
Luminance0.1141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2D98 #2D9E33
analogous
#6C2D9E #9E2D98 #9E2D5F
triadic
#9E2D98 #989E2D #2D989E
tetradic
#9E2D98 #9E6C2D #2D9E33 #2D5F9E
square
#9E2D98 #9E6C2D #2D9E33 #2D5F9E
split-complementary
#9E2D98 #5F9E2D #2D9E6C
monochromatic
#3F123C #6E1F6A #9E2D98 #C940C1 #D66FD1

Accessibility & contrast

On white

6.40
#9E2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9E2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2D98
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2D98#FFFFFF#000000##FFFFFF
##9E2D981.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#4E6495
Tritanopia (blue-blind)
#A43B5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e2d98;
/* rgb */ color: rgb(158, 45, 152);
/* oklch */ color: oklch(51.0% 0.190 330.2);
Tailwind
colors: {
  custom: {
    50: '#be71b7',
    500: '#9e2d98',
    950: '#000000',
  },
}
SCSS
$custom: #9e2d98;
$custom-light: #be71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2d98",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 303.186,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51012,
    "c": 0.19043,
    "h": 330.2
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#9E2D98
secondary
#69BD6E
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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