#8A5CEB#8A5CEB

#8A5CEB is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.7% C 0.206 H 294.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5CEB
RGBrgb(138, 92, 235)
HSLhsl(259, 78%, 64%)
HSVhsv(259, 61%, 92%)
CMYKcmyk(41.3%, 60.9%, 0%, 7.8%)
CIE-LABlab(50.75, 50.04, -65.92)
CIE-LCHlch(50.75, 82.76, 307.20°)
OKLaboklab(59.68% 0.084 -0.1879)
OKLCHoklch(59.68% 0.206 294.1)
XYZxyz(29.2998, 19.0550, 80.7154)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CEB #BDEB5C
analogous
#5C76EB #8A5CEB #D25CEB
triadic
#8A5CEB #EB8A5C #5CEB8A
tetradic
#8A5CEB #EB5C76 #BDEB5C #5CEBD2
square
#8A5CEB #EB5C76 #BDEB5C #5CEBD2
split-complementary
#8A5CEB #EBD25C #76EB5C
monochromatic
#4A16B6 #6325E4 #8A5CEB #B193F2 #D8C9F8

Accessibility & contrast

On white

4.36
#8A5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CEB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CEB#FFFFFF#000000##000000
##8A5CEB1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#707C9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ceb;
/* rgb */ color: rgb(138, 92, 235);
/* oklch */ color: oklch(59.7% 0.206 294.1);
Tailwind
colors: {
  custom: {
    50: '#b28cf2',
    500: '#8a5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ceb;
$custom-light: #b28cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ceb",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 259.301,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5968,
    "c": 0.20588,
    "h": 294.1
  },
  "luminance": 0.19056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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