#8A5CE5#8A5CE5

#8A5CE5 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.3% C 0.199 H 295.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE5
RGBrgb(138, 92, 229)
HSLhsl(260, 72%, 63%)
HSVhsv(260, 60%, 90%)
CMYKcmyk(39.7%, 59.8%, 0%, 10.2%)
CIE-LABlab(50.35, 48.46, -63.19)
CIE-LCHlch(50.35, 79.63, 307.48°)
OKLaboklab(59.26% 0.0843 -0.1799)
OKLCHoklch(59.26% 0.199 295.1)
XYZxyz(28.4475, 18.7141, 76.2269)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE5 #B7E55C
analogous
#5C72E5 #8A5CE5 #CE5CE5
triadic
#8A5CE5 #E58A5C #5CE58A
tetradic
#8A5CE5 #E55C72 #B7E55C #5CE5CE
square
#8A5CE5 #E55C72 #B7E55C #5CE5CE
split-complementary
#8A5CE5 #E5CE5C #72E55C
monochromatic
#4C1BAB #6427DD #8A5CE5 #B091ED #D6C6F6

Accessibility & contrast

On white

4.43
#8A5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8A5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE5#FFFFFF#000000##000000
##8A5CE51.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#1476E2
Tritanopia (blue-blind)
#737A98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ce5;
/* rgb */ color: rgb(138, 92, 229);
/* oklch */ color: oklch(59.3% 0.199 295.1);
Tailwind
colors: {
  custom: {
    50: '#b28cee',
    500: '#8a5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce5;
$custom-light: #b28cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce5",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 260.146,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59261,
    "c": 0.1987,
    "h": 295.1
  },
  "luminance": 0.18715
}

Semantic roles & 50–950 ramp

primary
#8A5CE5
secondary
#D6E7B6
accent
#D51193
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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