#9E2897#9E2897

#9E2897 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.5% C 0.195 H 330.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#9E2897
RGBrgb(158, 40, 151)
HSLhsl(304, 60%, 39%)
HSVhsv(304, 75%, 62%)
CMYKcmyk(0%, 74.7%, 4.4%, 38%)
CIE-LABlab(39.62, 59.85, -34.71)
CIE-LCHlch(39.62, 69.19, 329.89°)
OKLaboklab(50.53% 0.1702 -0.0957)
OKLCHoklch(50.53% 0.195 330.6)
XYZxyz(20.4452, 11.0227, 30.3229)
Luminance0.1102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2897 #289E2F
analogous
#6A289E #9E2897 #9E285C
triadic
#9E2897 #979E28 #28979E
tetradic
#9E2897 #9E6A28 #289E2F #285C9E
square
#9E2897 #9E6A28 #289E2F #285C9E
split-complementary
#9E2897 #5C9E28 #289E6A
monochromatic
#3C0F3A #6D1C68 #9E2897 #CC37C3 #D968D2

Accessibility & contrast

On white

6.55
#9E2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9E2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2897
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2897#FFFFFF#000000##FFFFFF
##9E28971.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B539A
Deuteranopia (green-blind)
#4D6394
Tritanopia (blue-blind)
#A4375D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2897;
/* rgb */ color: rgb(158, 40, 151);
/* oklch */ color: oklch(50.5% 0.195 330.6);
Tailwind
colors: {
  custom: {
    50: '#be6fb6',
    500: '#9e2897',
    950: '#000000',
  },
}
SCSS
$custom: #9e2897;
$custom-light: #be6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2897",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 303.559,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50527,
    "c": 0.19524,
    "h": 330.6
  },
  "luminance": 0.11021
}

Semantic roles & 50–950 ramp

primary
#9E2897
secondary
#63BF68
accent
#E34E45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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