#8A4ECB#8A4ECB

#8A4ECB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.188 H 302.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A4ECB
RGBrgb(138, 78, 203)
HSLhsl(269, 55%, 55%)
HSVhsv(269, 62%, 80%)
CMYKcmyk(32%, 61.6%, 0%, 20.4%)
CIE-LABlab(45.86, 49.32, -55.62)
CIE-LCHlch(45.86, 74.34, 311.57°)
OKLaboklab(55.45% 0.1017 -0.1576)
OKLCHoklch(55.45% 0.188 302.8)
XYZxyz(23.9826, 15.1638, 58.1518)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ECB #8FCB4E
analogous
#4E51CB #8A4ECB #C84ECB
triadic
#8A4ECB #CB8A4E #4ECB8A
tetradic
#8A4ECB #CB4E51 #8FCB4E #4ECBC8
square
#8A4ECB #CB4E51 #8FCB4E #4ECBC8
split-complementary
#8A4ECB #CBC84E #51CB4E
monochromatic
#4E247B #6C32AA #8A4ECB #A97DD9 #C9ADE7

Accessibility & contrast

On white

5.21
#8A4ECB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A4ECB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ECB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ECB#FFFFFF#000000##FFFFFF
##8A4ECB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#2A6CC8
Tritanopia (blue-blind)
#7D6885
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4ecb;
/* rgb */ color: rgb(138, 78, 203);
/* oklch */ color: oklch(55.4% 0.188 302.8);
Tailwind
colors: {
  custom: {
    50: '#b083db',
    500: '#8a4ecb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ecb;
$custom-light: #b083db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ecb",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 203
  },
  "hsl": {
    "h": 268.8,
    "s": 54.585,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55448,
    "c": 0.18761,
    "h": 302.8
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#8A4ECB
secondary
#BBD5A0
accent
#DE4A97
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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