#8A5AE1#8A5AE1

#8A5AE1 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.7% C 0.197 H 296.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE1
RGBrgb(138, 90, 225)
HSLhsl(261, 69%, 62%)
HSVhsv(261, 60%, 88%)
CMYKcmyk(38.7%, 60%, 0%, 11.8%)
CIE-LABlab(49.68, 48.50, -62.02)
CIE-LCHlch(49.68, 78.73, 308.03°)
OKLaboklab(58.69% 0.0868 -0.1765)
OKLCHoklch(58.69% 0.197 296.2)
XYZxyz(27.7245, 18.1513, 73.2624)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE1 #B1E15A
analogous
#5A6EE1 #8A5AE1 #CD5AE1
triadic
#8A5AE1 #E18A5A #5AE18A
tetradic
#8A5AE1 #E15A6E #B1E15A #5AE1CD
square
#8A5AE1 #E15A6E #B1E15A #5AE1CD
split-complementary
#8A5AE1 #E1CD5A #6EE15A
monochromatic
#4D1EA3 #6627D7 #8A5AE1 #AF8EEA #D3C2F4

Accessibility & contrast

On white

4.54
#8A5AE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8A5AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE1#FFFFFF#000000##000000
##8A5AE11.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#1974DE
Tritanopia (blue-blind)
#757895
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ae1;
/* rgb */ color: rgb(138, 90, 225);
/* oklch */ color: oklch(58.7% 0.197 296.2);
Tailwind
colors: {
  custom: {
    50: '#b18beb',
    500: '#8a5ae1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae1;
$custom-light: #b18beb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae1",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 261.333,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58687,
    "c": 0.19665,
    "h": 296.2
  },
  "luminance": 0.18152
}

Semantic roles & 50–950 ramp

primary
#8A5AE1
secondary
#D3E4B2
accent
#D1148E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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