#8A5AE3#8A5AE3

#8A5AE3 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.8% C 0.199 H 295.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE3
RGBrgb(138, 90, 227)
HSLhsl(261, 71%, 62%)
HSVhsv(261, 60%, 89%)
CMYKcmyk(39.2%, 60.4%, 0%, 11%)
CIE-LABlab(49.81, 49.02, -62.93)
CIE-LCHlch(49.81, 79.77, 307.92°)
OKLaboklab(58.83% 0.0867 -0.1792)
OKLCHoklch(58.83% 0.199 295.8)
XYZxyz(27.9989, 18.2611, 74.7077)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE3 #B3E35A
analogous
#5A6FE3 #8A5AE3 #CF5AE3
triadic
#8A5AE3 #E38A5A #5AE38A
tetradic
#8A5AE3 #E35A6F #B3E35A #5AE3CF
square
#8A5AE3 #E35A6F #B3E35A #5AE3CF
split-complementary
#8A5AE3 #E3CF5A #6FE35A
monochromatic
#4D1CA6 #6526DA #8A5AE3 #AF8EEC #D4C3F5

Accessibility & contrast

On white

4.51
#8A5AE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#8A5AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE3#FFFFFF#000000##000000
##8A5AE31.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#1275E0
Tritanopia (blue-blind)
#747896
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5ae3;
/* rgb */ color: rgb(138, 90, 227);
/* oklch */ color: oklch(58.8% 0.199 295.8);
Tailwind
colors: {
  custom: {
    50: '#b28bed',
    500: '#8a5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae3;
$custom-light: #b28bed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae3",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 261.022,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58825,
    "c": 0.19904,
    "h": 295.8
  },
  "luminance": 0.18262
}

Semantic roles & 50–950 ramp

primary
#8A5AE3
secondary
#D4E6B3
accent
#D31290
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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