#8A5BD4#8A5BD4

#8A5BD4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.180 H 298.6°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD4
RGBrgb(138, 91, 212)
HSLhsl(263, 58%, 59%)
HSVhsv(263, 57%, 83%)
CMYKcmyk(34.9%, 57.1%, 0%, 16.9%)
CIE-LABlab(49.05, 44.59, -55.64)
CIE-LCHlch(49.05, 71.30, 308.71°)
OKLaboklab(57.97% 0.0859 -0.1577)
OKLCHoklch(57.97% 0.18 298.6)
XYZxyz(26.1031, 17.6386, 64.3039)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD4 #A5D45B
analogous
#5B69D4 #8A5BD4 #C75BD4
triadic
#8A5BD4 #D48A5B #5BD48A
tetradic
#8A5BD4 #D45B69 #A5D45B #5BD4C7
square
#8A5BD4 #D45B69 #A5D45B #5BD4C7
split-complementary
#8A5BD4 #D4C75B #69D45B
monochromatic
#4F268F #6932C0 #8A5BD4 #AD8BE1 #CFBCED

Accessibility & contrast

On white

4.64
#8A5BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A5BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD4#FFFFFF#000000##FFFFFF
##8A5BD41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D8
Deuteranopia (green-blind)
#3373D1
Tritanopia (blue-blind)
#7A748F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5bd4;
/* rgb */ color: rgb(138, 91, 212);
/* oklch */ color: oklch(58.0% 0.180 298.6);
Tailwind
colors: {
  custom: {
    50: '#b08be2',
    500: '#8a5bd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd4;
$custom-light: #b08be2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd4",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 263.306,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57965,
    "c": 0.17957,
    "h": 298.6
  },
  "luminance": 0.17639
}

Semantic roles & 50–950 ramp

primary
#8A5BD4
secondary
#CBDDAE
accent
#E246A5
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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