#8A5BDC#8A5BDC

#8A5BDC is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.5% C 0.189 H 296.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5BDC
RGBrgb(138, 91, 220)
HSLhsl(262, 65%, 61%)
HSVhsv(262, 59%, 86%)
CMYKcmyk(37.3%, 58.6%, 0%, 13.7%)
CIE-LABlab(49.56, 46.66, -59.38)
CIE-LCHlch(49.56, 75.51, 308.16°)
OKLaboklab(58.5% 0.0858 -0.1687)
OKLCHoklch(58.5% 0.189 296.9)
XYZxyz(27.1373, 18.0523, 69.7510)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BDC #ADDC5B
analogous
#5B6CDC #8A5BDC #CA5BDC
triadic
#8A5BDC #DC8A5B #5BDC8A
tetradic
#8A5BDC #DC5B6C #ADDC5B #5BDCCA
square
#8A5BDC #DC5B6C #ADDC5B #5BDCCA
split-complementary
#8A5BDC #DCCA5B #6CDC5B
monochromatic
#4E219B #672CCE #8A5BDC #AE8DE7 #D2C0F2

Accessibility & contrast

On white

4.55
#8A5BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8A5BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BDC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BDC#FFFFFF#000000##000000
##8A5BDC1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0776E0
Deuteranopia (green-blind)
#2774D9
Tritanopia (blue-blind)
#777793
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5bdc;
/* rgb */ color: rgb(138, 91, 220);
/* oklch */ color: oklch(58.5% 0.189 296.9);
Tailwind
colors: {
  custom: {
    50: '#b18be8',
    500: '#8a5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bdc;
$custom-light: #b18be8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bdc",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 261.86,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58496,
    "c": 0.18926,
    "h": 296.9
  },
  "luminance": 0.18053
}

Semantic roles & 50–950 ramp

primary
#8A5BDC
secondary
#D0E2B1
accent
#CD198B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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