#8E2DB2#8E2DB2

#8E2DB2 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.205 H 315.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8E2DB2
RGBrgb(142, 45, 178)
HSLhsl(284, 60%, 44%)
HSVhsv(284, 75%, 70%)
CMYKcmyk(20.2%, 74.7%, 0%, 30.2%)
CIE-LABlab(39.31, 59.61, -51.53)
CIE-LCHlch(39.31, 78.79, 319.16°)
OKLaboklab(50.34% 0.1452 -0.1453)
OKLCHoklch(50.34% 0.205 315)
XYZxyz(20.1283, 10.8426, 43.1434)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DB2 #51B22D
analogous
#4B2DB2 #8E2DB2 #B22D93
triadic
#8E2DB2 #B28E2D #2DB28E
tetradic
#8E2DB2 #B24B2D #51B22D #2D93B2
square
#8E2DB2 #B24B2D #51B22D #2D93B2
split-complementary
#8E2DB2 #93B22D #2DB24B
monochromatic
#401450 #672181 #8E2DB2 #AD4BD1 #C37CDE

Accessibility & contrast

On white

6.63
#8E2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8E2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DB2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DB2#FFFFFF#000000##FFFFFF
##8E2DB21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#275FAF
Tritanopia (blue-blind)
#8B4A6E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8e2db2;
/* rgb */ color: rgb(142, 45, 178);
/* oklch */ color: oklch(50.3% 0.205 315.0);
Tailwind
colors: {
  custom: {
    50: '#b370ca',
    500: '#8e2db2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2db2;
$custom-light: #b370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2db2",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 283.759,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50336,
    "c": 0.20541,
    "h": 315
  },
  "luminance": 0.10842
}

Semantic roles & 50–950 ramp

primary
#8E2DB2
secondary
#8BC675
accent
#E34570
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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