#8A5CE2#8A5CE2

#8A5CE2 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.1% C 0.195 H 295.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE2
RGBrgb(138, 92, 226)
HSLhsl(261, 70%, 62%)
HSVhsv(261, 59%, 89%)
CMYKcmyk(38.9%, 59.3%, 0%, 11.4%)
CIE-LABlab(50.15, 47.67, -61.81)
CIE-LCHlch(50.15, 78.06, 307.64°)
OKLaboklab(59.06% 0.0844 -0.1759)
OKLCHoklch(59.06% 0.195 295.6)
XYZxyz(28.0323, 18.5480, 74.0400)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE2 #B4E25C
analogous
#5C71E2 #8A5CE2 #CD5CE2
triadic
#8A5CE2 #E28A5C #5CE28A
tetradic
#8A5CE2 #E25C71 #B4E25C #5CE2CD
square
#8A5CE2 #E25C71 #B4E25C #5CE2CD
split-complementary
#8A5CE2 #E2CD5C #71E25C
monochromatic
#4C1EA6 #6528D9 #8A5CE2 #AF90EB #D5C4F4

Accessibility & contrast

On white

4.46
#8A5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#8A5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE2#FFFFFF#000000##000000
##8A5CE21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#1D75DF
Tritanopia (blue-blind)
#747996
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ce2;
/* rgb */ color: rgb(138, 92, 226);
/* oklch */ color: oklch(59.1% 0.195 295.6);
Tailwind
colors: {
  custom: {
    50: '#b18cec',
    500: '#8a5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce2;
$custom-light: #b18cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce2",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 260.597,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59055,
    "c": 0.1951,
    "h": 295.6
  },
  "luminance": 0.18549
}

Semantic roles & 50–950 ramp

primary
#8A5CE2
secondary
#D5E5B4
accent
#D21491
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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