#8A5ECE#8A5ECE

#8A5ECE is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.1% C 0.168 H 299.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5ECE
RGBrgb(138, 94, 206)
HSLhsl(264, 53%, 59%)
HSVhsv(264, 54%, 81%)
CMYKcmyk(33%, 54.4%, 0%, 19.2%)
CIE-LABlab(49.33, 41.39, -51.76)
CIE-LCHlch(49.33, 66.28, 308.65°)
OKLaboklab(58.05% 0.082 -0.1464)
OKLCHoklch(58.05% 0.168 299.3)
XYZxyz(25.6218, 17.8647, 60.4789)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ECE #A2CE5E
analogous
#5E6ACE #8A5ECE #C25ECE
triadic
#8A5ECE #CE8A5E #5ECE8A
tetradic
#8A5ECE #CE5E6A #A2CE5E #5ECEC2
square
#8A5ECE #CE5E6A #A2CE5E #5ECEC2
split-complementary
#8A5ECE #CEC25E #6ACE5E
monochromatic
#4F2988 #6A38B7 #8A5ECE #AC8DDC #CEBCEB

Accessibility & contrast

On white

4.59
#8A5ECE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8A5ECE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ECE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ECE#FFFFFF#000000##FFFFFF
##8A5ECE1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3075D2
Deuteranopia (green-blind)
#3F74CB
Tritanopia (blue-blind)
#7C748D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5ece;
/* rgb */ color: rgb(138, 94, 206);
/* oklch */ color: oklch(58.1% 0.168 299.3);
Tailwind
colors: {
  custom: {
    50: '#b08ddd',
    500: '#8a5ece',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ece;
$custom-light: #b08ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ece",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 206
  },
  "hsl": {
    "h": 263.571,
    "s": 53.333,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58052,
    "c": 0.16776,
    "h": 299.3
  },
  "luminance": 0.17865
}

Semantic roles & 50–950 ramp

primary
#8A5ECE
secondary
#C9DAAE
accent
#DD4BA4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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