#8A5AEB#8A5AEB

#8A5AEB is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.4% C 0.209 H 294.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5AEB
RGBrgb(138, 90, 235)
HSLhsl(260, 78%, 64%)
HSVhsv(260, 62%, 92%)
CMYKcmyk(41.3%, 61.7%, 0%, 7.8%)
CIE-LABlab(50.35, 51.11, -66.57)
CIE-LCHlch(50.35, 83.93, 307.52°)
OKLaboklab(59.39% 0.0862 -0.1899)
OKLCHoklch(59.39% 0.209 294.4)
XYZxyz(29.1288, 18.7130, 80.6584)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AEB #BBEB5A
analogous
#5A72EB #8A5AEB #D25AEB
triadic
#8A5AEB #EB8A5A #5AEB8A
tetradic
#8A5AEB #EB5A72 #BBEB5A #5AEBD2
square
#8A5AEB #EB5A72 #BBEB5A #5AEBD2
split-complementary
#8A5AEB #EBD25A #72EB5A
monochromatic
#4A16B5 #6323E4 #8A5AEB #B191F2 #D7C7F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5AEB#FFFFFF#000000##000000
##8A5AEB1.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)
#0079F0
Deuteranopia (green-blind)
#0075E8
Tritanopia (blue-blind)
#707B9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5aeb;
/* rgb */ color: rgb(138, 90, 235);
/* oklch */ color: oklch(59.4% 0.209 294.4);
Tailwind
colors: {
  custom: {
    50: '#b28bf2',
    500: '#8a5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aeb;
$custom-light: #b28bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aeb",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 259.862,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59388,
    "c": 0.20852,
    "h": 294.4
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#8A5AEB
secondary
#D9EAB7
accent
#DB0B96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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