#8A5DCE#8A5DCE

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

Color values

HEX#8A5DCE
RGBrgb(138, 93, 206)
HSLhsl(264, 54%, 59%)
HSVhsv(264, 55%, 81%)
CMYKcmyk(33%, 54.9%, 0%, 19.2%)
CIE-LABlab(49.12, 41.95, -52.11)
CIE-LCHlch(49.12, 66.90, 308.84°)
OKLaboklab(57.89% 0.0833 -0.1474)
OKLCHoklch(57.89% 0.169 299.5)
XYZxyz(25.5335, 17.6880, 60.4495)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DCE #A1CE5D
analogous
#5D68CE #8A5DCE #C35DCE
triadic
#8A5DCE #CE8A5D #5DCE8A
tetradic
#8A5DCE #CE5D68 #A1CE5D #5DCEC3
square
#8A5DCE #CE5D68 #A1CE5D #5DCEC3
split-complementary
#8A5DCE #CEC35D #68CE5D
monochromatic
#4F2988 #6A37B7 #8A5DCE #AC8CDC #CEBBEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5DCE#FFFFFF#000000##FFFFFF
##8A5DCE1.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)
#2E75D2
Deuteranopia (green-blind)
#3D74CB
Tritanopia (blue-blind)
#7C748D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5dce;
/* rgb */ color: rgb(138, 93, 206);
/* oklch */ color: oklch(57.9% 0.169 299.5);
Tailwind
colors: {
  custom: {
    50: '#b08cdd',
    500: '#8a5dce',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dce;
$custom-light: #b08cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dce",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 206
  },
  "hsl": {
    "h": 263.894,
    "s": 53.555,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57892,
    "c": 0.16926,
    "h": 299.5
  },
  "luminance": 0.17688
}

Semantic roles & 50–950 ramp

primary
#8A5DCE
secondary
#C8DAAD
accent
#DD4BA3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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