#9E28A3#9E28A3

#9E28A3 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.205 H 326.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9E28A3
RGBrgb(158, 40, 163)
HSLhsl(298, 61%, 40%)
HSVhsv(298, 75%, 64%)
CMYKcmyk(3.1%, 75.5%, 0%, 36.1%)
CIE-LABlab(40.30, 61.84, -40.87)
CIE-LCHlch(40.30, 74.12, 326.54°)
OKLaboklab(51.23% 0.1701 -0.1136)
OKLCHoklch(51.23% 0.205 326.3)
XYZxyz(21.4698, 11.4325, 35.7191)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28A3 #2DA328
analogous
#6128A3 #9E28A3 #A3286B
triadic
#9E28A3 #A39E28 #28A39E
tetradic
#9E28A3 #A36128 #2DA328 #286BA3
square
#9E28A3 #A36128 #2DA328 #286BA3
split-complementary
#9E28A3 #6BA328 #28A361
monochromatic
#3F1041 #6E1C72 #9E28A3 #C93ACF #D66BDB

Accessibility & contrast

On white

6.39
#9E28A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9E28A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28A3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28A3#FFFFFF#000000##FFFFFF
##9E28A31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A6
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#A23D64
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e28a3;
/* rgb */ color: rgb(158, 40, 163);
/* oklch */ color: oklch(51.2% 0.205 326.3);
Tailwind
colors: {
  custom: {
    50: '#be6fbf',
    500: '#9e28a3',
    950: '#000000',
  },
}
SCSS
$custom: #9e28a3;
$custom-light: #be6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28a3",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 297.561,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51234,
    "c": 0.20455,
    "h": 326.3
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#9E28A3
secondary
#69C166
accent
#E4444B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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