#8E3CDA#8E3CDA

#8E3CDA is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.8% C 0.227 H 303.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8E3CDA
RGBrgb(142, 60, 218)
HSLhsl(271, 68%, 55%)
HSVhsv(271, 72%, 85%)
CMYKcmyk(34.9%, 72.5%, 0%, 14.5%)
CIE-LABlab(44.30, 62.26, -66.73)
CIE-LCHlch(44.30, 91.26, 313.01°)
OKLaboklab(54.77% 0.1244 -0.1901)
OKLCHoklch(54.77% 0.227 303.2)
XYZxyz(25.4231, 14.0445, 67.6876)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3CDA #88DA3C
analogous
#3F3CDA #8E3CDA #DA3CD7
triadic
#8E3CDA #DA8E3C #3CDA8E
tetradic
#8E3CDA #DA3F3C #88DA3C #3CD7DA
square
#8E3CDA #DA3F3C #88DA3C #3CD7DA
split-complementary
#8E3CDA #D7DA3C #3CDA3F
monochromatic
#501983 #6F23B6 #8E3CDA #AC6FE4 #CAA3EE

Accessibility & contrast

On white

5.51
#8E3CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8E3CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3CDA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3CDA#FFFFFF#000000##FFFFFF
##8E3CDA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DF
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#7F6388
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e3cda;
/* rgb */ color: rgb(142, 60, 218);
/* oklch */ color: oklch(54.8% 0.227 303.2);
Tailwind
colors: {
  custom: {
    50: '#b579e6',
    500: '#8e3cda',
    950: '#000000',
  },
}
SCSS
$custom: #8e3cda;
$custom-light: #b579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3cda",
  "rgb": {
    "r": 142,
    "g": 60,
    "b": 218
  },
  "hsl": {
    "h": 271.139,
    "s": 68.103,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54766,
    "c": 0.22716,
    "h": 303.2
  },
  "luminance": 0.14044
}

Semantic roles & 50–950 ramp

primary
#8E3CDA
secondary
#B8DA97
accent
#EB3D91
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E3CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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