#8E3ECD#8E3ECD

#8E3ECD is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.212 H 306.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8E3ECD
RGBrgb(142, 62, 205)
HSLhsl(274, 59%, 52%)
HSVhsv(274, 70%, 80%)
CMYKcmyk(30.7%, 69.8%, 0%, 19.6%)
CIE-LABlab(43.66, 58.41, -60.29)
CIE-LCHlch(43.66, 83.95, 314.09°)
OKLaboklab(54.02% 0.1246 -0.1712)
OKLCHoklch(54.02% 0.212 306)
XYZxyz(23.8950, 13.6040, 59.1128)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3ECD #7DCD3E
analogous
#463ECD #8E3ECD #CD3EC5
triadic
#8E3ECD #CD8E3E #3ECD8E
tetradic
#8E3ECD #CD463E #7DCD3E #3EC5CD
square
#8E3ECD #CD463E #7DCD3E #3EC5CD
split-complementary
#8E3ECD #C5CD3E #3ECD46
monochromatic
#4D1E73 #6E2AA3 #8E3ECD #AA6FDA #C79FE6

Accessibility & contrast

On white

5.64
#8E3ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8E3ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3ECD
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3ECD#FFFFFF#000000##FFFFFF
##8E3ECD1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0568CA
Tritanopia (blue-blind)
#835F81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e3ecd;
/* rgb */ color: rgb(142, 62, 205);
/* oklch */ color: oklch(54.0% 0.212 306.0);
Tailwind
colors: {
  custom: {
    50: '#b47add',
    500: '#8e3ecd',
    950: '#000000',
  },
}
SCSS
$custom: #8e3ecd;
$custom-light: #b47add;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3ecd",
  "rgb": {
    "r": 142,
    "g": 62,
    "b": 205
  },
  "hsl": {
    "h": 273.566,
    "s": 58.848,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.21173,
    "h": 306
  },
  "luminance": 0.13604
}

Semantic roles & 50–950 ramp

primary
#8E3ECD
secondary
#B0D394
accent
#E2468B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E3ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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