#8E4BCD#8E4BCD

#8E4BCD is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.6% C 0.195 H 304.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8E4BCD
RGBrgb(142, 75, 205)
HSLhsl(271, 57%, 55%)
HSVhsv(271, 63%, 80%)
CMYKcmyk(30.7%, 63.4%, 0%, 19.6%)
CIE-LABlab(45.89, 52.24, -56.68)
CIE-LCHlch(45.89, 77.08, 312.66°)
OKLaboklab(55.62% 0.1104 -0.1606)
OKLCHoklch(55.62% 0.195 304.5)
XYZxyz(24.6884, 15.1908, 59.3773)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4BCD #8ACD4B
analogous
#4D4BCD #8E4BCD #CD4BCB
triadic
#8E4BCD #CD8E4B #4BCD8E
tetradic
#8E4BCD #CD4D4B #8ACD4B #4BCBCD
square
#8E4BCD #CD4D4B #8ACD4B #4BCBCD
split-complementary
#8E4BCD #CBCD4B #4BCD4D
monochromatic
#50227B #6F30AB #8E4BCD #AC7BDA #CAABE8

Accessibility & contrast

On white

5.20
#8E4BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8E4BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4BCD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4BCD#FFFFFF#000000##FFFFFF
##8E4BCD1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#276DCA
Tritanopia (blue-blind)
#826785
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e4bcd;
/* rgb */ color: rgb(142, 75, 205);
/* oklch */ color: oklch(55.6% 0.195 304.5);
Tailwind
colors: {
  custom: {
    50: '#b381dd',
    500: '#8e4bcd',
    950: '#000000',
  },
}
SCSS
$custom: #8e4bcd;
$custom-light: #b381dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4bcd",
  "rgb": {
    "r": 142,
    "g": 75,
    "b": 205
  },
  "hsl": {
    "h": 270.923,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55621,
    "c": 0.19492,
    "h": 304.5
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#8E4BCD
secondary
#B9D59F
accent
#E04892
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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