#8A5CEA#8A5CEA

#8A5CEA is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.205 H 294.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A5CEA
RGBrgb(138, 92, 234)
HSLhsl(259, 77%, 64%)
HSVhsv(259, 61%, 92%)
CMYKcmyk(41%, 60.7%, 0%, 8.2%)
CIE-LABlab(50.68, 49.78, -65.47)
CIE-LCHlch(50.68, 82.24, 307.25°)
OKLaboklab(59.61% 0.0841 -0.1866)
OKLCHoklch(59.61% 0.205 294.3)
XYZxyz(29.1557, 18.9974, 79.9567)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CEA #BCEA5C
analogous
#5C75EA #8A5CEA #D15CEA
triadic
#8A5CEA #EA8A5C #5CEA8A
tetradic
#8A5CEA #EA5C75 #BCEA5C #5CEAD1
square
#8A5CEA #EA5C75 #BCEA5C #5CEAD1
split-complementary
#8A5CEA #EAD15C #75EA5C
monochromatic
#4A17B4 #6326E3 #8A5CEA #B192F1 #D8C8F8

Accessibility & contrast

On white

4.38
#8A5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8A5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CEA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CEA#FFFFFF#000000##000000
##8A5CEA1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#717C9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5cea;
/* rgb */ color: rgb(138, 92, 234);
/* oklch */ color: oklch(59.6% 0.205 294.3);
Tailwind
colors: {
  custom: {
    50: '#b28cf2',
    500: '#8a5cea',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cea;
$custom-light: #b28cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cea",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 259.437,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.5961,
    "c": 0.20469,
    "h": 294.3
  },
  "luminance": 0.18998
}

Semantic roles & 50–950 ramp

primary
#8A5CEA
secondary
#DAEAB8
accent
#D90C97
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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