#8A5CE3#8A5CE3

#8A5CE3 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.1% C 0.196 H 295.5°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE3
RGBrgb(138, 92, 227)
HSLhsl(260, 71%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(39.2%, 59.5%, 0%, 11%)
CIE-LABlab(50.22, 47.94, -62.27)
CIE-LCHlch(50.22, 78.59, 307.59°)
OKLaboklab(59.12% 0.0844 -0.1772)
OKLCHoklch(59.12% 0.196 295.5)
XYZxyz(28.1699, 18.6030, 74.7647)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE3 #B5E35C
analogous
#5C72E3 #8A5CE3 #CD5CE3
triadic
#8A5CE3 #E38A5C #5CE38A
tetradic
#8A5CE3 #E35C72 #B5E35C #5CE3CD
square
#8A5CE3 #E35C72 #B5E35C #5CE3CD
split-complementary
#8A5CE3 #E3CD5C #72E35C
monochromatic
#4C1DA8 #6528DA #8A5CE3 #AF90EC #D5C4F5

Accessibility & contrast

On white

4.45
#8A5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8A5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE3
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE3#FFFFFF#000000##000000
##8A5CE31.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#1A76E0
Tritanopia (blue-blind)
#747A97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ce3;
/* rgb */ color: rgb(138, 92, 227);
/* oklch */ color: oklch(59.1% 0.196 295.5);
Tailwind
colors: {
  custom: {
    50: '#b28ced',
    500: '#8a5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce3;
$custom-light: #b28ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce3",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 260.444,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59123,
    "c": 0.1963,
    "h": 295.5
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

primary
#8A5CE3
secondary
#D5E6B5
accent
#D31391
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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