#8A5AE5#8A5AE5

#8A5AE5 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.0% C 0.201 H 295.5°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE5
RGBrgb(138, 90, 229)
HSLhsl(261, 73%, 63%)
HSVhsv(261, 61%, 90%)
CMYKcmyk(39.7%, 60.7%, 0%, 10.2%)
CIE-LABlab(49.94, 49.54, -63.85)
CIE-LCHlch(49.94, 80.81, 307.81°)
OKLaboklab(58.97% 0.0866 -0.1819)
OKLCHoklch(58.97% 0.201 295.5)
XYZxyz(28.2765, 18.3722, 76.1699)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE5 #B5E55A
analogous
#5A70E5 #8A5AE5 #CF5AE5
triadic
#8A5AE5 #E58A5A #5AE58A
tetradic
#8A5AE5 #E55A70 #B5E55A #5AE5CF
square
#8A5AE5 #E55A70 #B5E55A #5AE5CF
split-complementary
#8A5AE5 #E5CF5A #70E55A
monochromatic
#4C1BAA #6525DD #8A5AE5 #AF8FED #D5C4F6

Accessibility & contrast

On white

4.49
#8A5AE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#8A5AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE5#FFFFFF#000000##000000
##8A5AE51.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0975E2
Tritanopia (blue-blind)
#737997
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ae5;
/* rgb */ color: rgb(138, 90, 229);
/* oklch */ color: oklch(59.0% 0.201 295.5);
Tailwind
colors: {
  custom: {
    50: '#b28bee',
    500: '#8a5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae5;
$custom-light: #b28bee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae5",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 260.719,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58965,
    "c": 0.20141,
    "h": 295.5
  },
  "luminance": 0.18373
}

Semantic roles & 50–950 ramp

primary
#8A5AE5
secondary
#D5E7B4
accent
#D51191
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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