#8A5CE1#8A5CE1

#8A5CE1 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.0% C 0.194 H 295.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE1
RGBrgb(138, 92, 225)
HSLhsl(261, 69%, 62%)
HSVhsv(261, 59%, 88%)
CMYKcmyk(38.7%, 59.1%, 0%, 11.8%)
CIE-LABlab(50.09, 47.41, -61.35)
CIE-LCHlch(50.09, 77.54, 307.70°)
OKLaboklab(58.99% 0.0845 -0.1745)
OKLCHoklch(58.99% 0.194 295.8)
XYZxyz(27.8955, 18.4933, 73.3194)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE1 #B3E15C
analogous
#5C71E1 #8A5CE1 #CD5CE1
triadic
#8A5CE1 #E18A5C #5CE18A
tetradic
#8A5CE1 #E15C71 #B3E15C #5CE1CD
square
#8A5CE1 #E15C71 #B3E15C #5CE1CD
split-complementary
#8A5CE1 #E1CD5C #71E15C
monochromatic
#4D1EA4 #6528D7 #8A5CE1 #AF90EB #D4C3F4

Accessibility & contrast

On white

4.47
#8A5CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A5CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE1#FFFFFF#000000##000000
##8A5CE11.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E5
Deuteranopia (green-blind)
#1F75DE
Tritanopia (blue-blind)
#757996
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ce1;
/* rgb */ color: rgb(138, 92, 225);
/* oklch */ color: oklch(59.0% 0.194 295.8);
Tailwind
colors: {
  custom: {
    50: '#b18ceb',
    500: '#8a5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce1;
$custom-light: #b18ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce1",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 260.752,
    "s": 68.912,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58986,
    "c": 0.1939,
    "h": 295.8
  },
  "luminance": 0.18494
}

Semantic roles & 50–950 ramp

primary
#8A5CE1
secondary
#D4E5B4
accent
#D11590
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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