#8A5BD2#8A5BD2

#8A5BD2 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.177 H 299.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD2
RGBrgb(138, 91, 210)
HSLhsl(264, 57%, 59%)
HSVhsv(264, 57%, 82%)
CMYKcmyk(34.3%, 56.7%, 0%, 17.6%)
CIE-LABlab(48.93, 44.08, -54.69)
CIE-LCHlch(48.93, 70.25, 308.87°)
OKLaboklab(57.83% 0.0858 -0.1549)
OKLCHoklch(57.83% 0.177 299)
XYZxyz(25.8523, 17.5383, 62.9835)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD2 #A3D25B
analogous
#5B68D2 #8A5BD2 #C55BD2
triadic
#8A5BD2 #D28A5B #5BD28A
tetradic
#8A5BD2 #D25B68 #A3D25B #5BD2C5
square
#8A5BD2 #D25B68 #A3D25B #5BD2C5
split-complementary
#8A5BD2 #D2C55B #68D25B
monochromatic
#4F268C #6A34BC #8A5BD2 #AC8BDF #CFBBEC

Accessibility & contrast

On white

4.66
#8A5BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8A5BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD2#FFFFFF#000000##FFFFFF
##8A5BD21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2374D6
Deuteranopia (green-blind)
#3673CF
Tritanopia (blue-blind)
#7A738E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5bd2;
/* rgb */ color: rgb(138, 91, 210);
/* oklch */ color: oklch(57.8% 0.177 299.0);
Tailwind
colors: {
  custom: {
    50: '#b08be0',
    500: '#8a5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd2;
$custom-light: #b08be0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd2",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 263.697,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57834,
    "c": 0.17714,
    "h": 299
  },
  "luminance": 0.17539
}

Semantic roles & 50–950 ramp

primary
#8A5BD2
secondary
#C9DCAD
accent
#E048A4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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