#8A5CDD#8A5CDD

#8A5CDD is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.7% C 0.189 H 296.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5CDD
RGBrgb(138, 92, 221)
HSLhsl(261, 65%, 61%)
HSVhsv(261, 58%, 87%)
CMYKcmyk(37.6%, 58.4%, 0%, 13.3%)
CIE-LABlab(49.83, 46.37, -59.51)
CIE-LCHlch(49.83, 75.44, 307.93°)
OKLaboklab(58.72% 0.0846 -0.1691)
OKLCHoklch(58.72% 0.189 296.6)
XYZxyz(27.3562, 18.2776, 70.4792)
Luminance0.1828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDD #AFDD5C
analogous
#5C6FDD #8A5CDD #CA5CDD
triadic
#8A5CDD #DD8A5C #5CDD8A
tetradic
#8A5CDD #DD5C6F #AFDD5C #5CDDCA
square
#8A5CDD #DD5C6F #AFDD5C #5CDDCA
split-complementary
#8A5CDD #DDCA5C #6FDD5C
monochromatic
#4D219E #662BD0 #8A5CDD #AE8FE8 #D3C1F2

Accessibility & contrast

On white

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

On black

4.66
#8A5CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDD#FFFFFF#000000##000000
##8A5CDD1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B77E1
Deuteranopia (green-blind)
#2775DA
Tritanopia (blue-blind)
#767894
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cdd;
/* rgb */ color: rgb(138, 92, 221);
/* oklch */ color: oklch(58.7% 0.189 296.6);
Tailwind
colors: {
  custom: {
    50: '#b18ce8',
    500: '#8a5cdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cdd;
$custom-light: #b18ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cdd",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 221
  },
  "hsl": {
    "h": 261.395,
    "s": 65.482,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58715,
    "c": 0.18906,
    "h": 296.6
  },
  "luminance": 0.18278
}

Semantic roles & 50–950 ramp

primary
#8A5CDD
secondary
#D1E3B2
accent
#CD188D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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