#9E28BF#9E28BF

#9E28BF is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 53.1% C 0.227 H 317.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9E28BF
RGBrgb(158, 40, 191)
HSLhsl(287, 65%, 45%)
HSVhsv(287, 79%, 75%)
CMYKcmyk(17.3%, 79.1%, 0%, 25.1%)
CIE-LABlab(42.08, 66.85, -54.60)
CIE-LCHlch(42.08, 86.31, 320.76°)
OKLaboklab(53.06% 0.1673 -0.1538)
OKLCHoklch(53.06% 0.227 317.4)
XYZxyz(24.2619, 12.5494, 50.4244)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28BF #49BF28
analogous
#5228BF #9E28BF #BF2895
triadic
#9E28BF #BF9E28 #28BF9E
tetradic
#9E28BF #BF5228 #49BF28 #2895BF
square
#9E28BF #BF5228 #49BF28 #2895BF
split-complementary
#9E28BF #95BF28 #28BF52
monochromatic
#4A135A #741D8C #9E28BF #BA4BD9 #CE7EE4

Accessibility & contrast

On white

5.98
#9E28BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9E28BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28BF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28BF#FFFFFF#000000##FFFFFF
##9E28BF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#2C67BC
Tritanopia (blue-blind)
#9C4B74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e28bf;
/* rgb */ color: rgb(158, 40, 191);
/* oklch */ color: oklch(53.1% 0.227 317.4);
Tailwind
colors: {
  custom: {
    50: '#bf71d3',
    500: '#9e28bf',
    950: '#000000',
  },
}
SCSS
$custom: #9e28bf;
$custom-light: #bf71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28bf",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 191
  },
  "hsl": {
    "h": 286.887,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53059,
    "c": 0.22727,
    "h": 317.4
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#9E28BF
secondary
#89CC77
accent
#E83F64
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9E28BF

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

Preview Lab → · Contrast checker → · Palette generator →

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