#8A5BD5#8A5BD5

#8A5BD5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.0% C 0.181 H 298.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD5
RGBrgb(138, 91, 213)
HSLhsl(263, 59%, 60%)
HSVhsv(263, 57%, 84%)
CMYKcmyk(35.2%, 57.3%, 0%, 16.5%)
CIE-LABlab(49.12, 44.85, -56.11)
CIE-LCHlch(49.12, 71.83, 308.64°)
OKLaboklab(58.03% 0.0859 -0.1591)
OKLCHoklch(58.03% 0.181 298.4)
XYZxyz(26.2296, 17.6892, 64.9703)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD5 #A6D55B
analogous
#5B69D5 #8A5BD5 #C75BD5
triadic
#8A5BD5 #D58A5B #5BD58A
tetradic
#8A5BD5 #D55B69 #A6D55B #5BD5C7
square
#8A5BD5 #D55B69 #A6D55B #5BD5C7
split-complementary
#8A5BD5 #D5C75B #69D55B
monochromatic
#4E2591 #6932C1 #8A5BD5 #AD8CE1 #D0BCEE

Accessibility & contrast

On white

4.63
#8A5BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A5BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD5#FFFFFF#000000##FFFFFF
##8A5BD51.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D75D9
Deuteranopia (green-blind)
#3274D2
Tritanopia (blue-blind)
#79748F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5bd5;
/* rgb */ color: rgb(138, 91, 213);
/* oklch */ color: oklch(58.0% 0.181 298.4);
Tailwind
colors: {
  custom: {
    50: '#b08be3',
    500: '#8a5bd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd5;
$custom-light: #b08be3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd5",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 263.115,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.18078,
    "h": 298.4
  },
  "luminance": 0.1769
}

Semantic roles & 50–950 ramp

primary
#8A5BD5
secondary
#CBDEAE
accent
#E245A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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