#8E2CBA#8E2CBA

#8E2CBA is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.214 H 312.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8E2CBA
RGBrgb(142, 44, 186)
HSLhsl(281, 62%, 45%)
HSVhsv(281, 76%, 73%)
CMYKcmyk(23.7%, 76.3%, 0%, 27.1%)
CIE-LABlab(39.74, 61.59, -55.56)
CIE-LCHlch(39.74, 82.95, 317.95°)
OKLaboklab(50.82% 0.1448 -0.1572)
OKLCHoklch(50.82% 0.214 312.7)
XYZxyz(20.9173, 11.0979, 47.4851)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2CBA #58BA2C
analogous
#472CBA #8E2CBA #BA2C9F
triadic
#8E2CBA #BA8E2C #2CBA8E
tetradic
#8E2CBA #BA472C #58BA2C #2C9FBA
square
#8E2CBA #BA472C #58BA2C #2C9FBA
split-complementary
#8E2CBA #9FBA2C #2CBA47
monochromatic
#421557 #682089 #8E2CBA #AB4ED5 #C380E1

Accessibility & contrast

On white

6.52
#8E2CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8E2CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2CBA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2CBA#FFFFFF#000000##FFFFFF
##8E2CBA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#1860B7
Tritanopia (blue-blind)
#894D72
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e2cba;
/* rgb */ color: rgb(142, 44, 186);
/* oklch */ color: oklch(50.8% 0.214 312.7);
Tailwind
colors: {
  custom: {
    50: '#b470d0',
    500: '#8e2cba',
    950: '#000000',
  },
}
SCSS
$custom: #8e2cba;
$custom-light: #b470d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2cba",
  "rgb": {
    "r": 142,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 281.408,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50817,
    "c": 0.21371,
    "h": 312.7
  },
  "luminance": 0.11097
}

Semantic roles & 50–950 ramp

primary
#8E2CBA
secondary
#91CA78
accent
#E54375
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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