#9E28A2#9E28A2

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

Color values

HEX#9E28A2
RGBrgb(158, 40, 162)
HSLhsl(298, 60%, 40%)
HSVhsv(298, 75%, 64%)
CMYKcmyk(2.5%, 75.3%, 0%, 36.5%)
CIE-LABlab(40.24, 61.67, -40.36)
CIE-LCHlch(40.24, 73.70, 326.80°)
OKLaboklab(51.17% 0.1701 -0.1121)
OKLCHoklch(51.17% 0.204 326.6)
XYZxyz(21.3805, 11.3968, 35.2491)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28A2 #2CA228
analogous
#6128A2 #9E28A2 #A22869
triadic
#9E28A2 #A29E28 #28A29E
tetradic
#9E28A2 #A26128 #2CA228 #2869A2
square
#9E28A2 #A26128 #2CA228 #2869A2
split-complementary
#9E28A2 #69A228 #28A261
monochromatic
#3E1040 #6E1C71 #9E28A2 #C939CE #D76ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E28A2#FFFFFF#000000##FFFFFF
##9E28A21.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)
#0155A5
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#A23D63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e28a2;
/* rgb */ color: rgb(158, 40, 162);
/* oklch */ color: oklch(51.2% 0.204 326.6);
Tailwind
colors: {
  custom: {
    50: '#be6fbe',
    500: '#9e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e28a2;
$custom-light: #be6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28a2",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 298.033,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51173,
    "c": 0.20376,
    "h": 326.6
  },
  "luminance": 0.11395
}

Semantic roles & 50–950 ramp

primary
#9E28A2
secondary
#68C165
accent
#E44449
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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