#8E28A5#8E28A5

#8E28A5 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.199 H 319.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8E28A5
RGBrgb(142, 40, 165)
HSLhsl(289, 61%, 40%)
HSVhsv(289, 76%, 65%)
CMYKcmyk(13.9%, 75.8%, 0%, 35.3%)
CIE-LABlab(37.82, 58.86, -46.19)
CIE-LCHlch(37.82, 74.82, 321.88°)
OKLaboklab(49% 0.1514 -0.1296)
OKLCHoklch(49% 0.199 319.4)
XYZxyz(18.7048, 9.9859, 36.5322)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28A5 #3FA528
analogous
#4F28A5 #8E28A5 #A5287D
triadic
#8E28A5 #A58E28 #28A58E
tetradic
#8E28A5 #A54F28 #3FA528 #287DA5
square
#8E28A5 #A54F28 #3FA528 #287DA5
split-complementary
#8E28A5 #7DA528 #28A54F
monochromatic
#391042 #641C74 #8E28A5 #B43BCF #C76CDB

Accessibility & contrast

On white

7.01
#8E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8E28A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28A5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28A5#FFFFFF#000000##FFFFFF
##8E28A51.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#325CA2
Tritanopia (blue-blind)
#8E4265
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e28a5;
/* rgb */ color: rgb(142, 40, 165);
/* oklch */ color: oklch(49.0% 0.199 319.4);
Tailwind
colors: {
  custom: {
    50: '#b36dc0',
    500: '#8e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #8e28a5;
$custom-light: #b36dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28a5",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 288.96,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48998,
    "c": 0.19931,
    "h": 319.4
  },
  "luminance": 0.09985
}

Semantic roles & 50–950 ramp

primary
#8E28A5
secondary
#78C267
accent
#E44461
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

#8E28A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva