#8A5DC4#8A5DC4

#8A5DC4 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.3% C 0.157 H 301.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5DC4
RGBrgb(138, 93, 196)
HSLhsl(266, 47%, 57%)
HSVhsv(266, 53%, 77%)
CMYKcmyk(29.6%, 52.6%, 0%, 23.1%)
CIE-LABlab(48.53, 39.43, -47.29)
CIE-LCHlch(48.53, 61.58, 309.82°)
OKLaboklab(57.27% 0.0828 -0.1333)
OKLCHoklch(57.27% 0.157 301.8)
XYZxyz(24.3571, 17.2174, 54.2539)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC4 #97C45D
analogous
#5D64C4 #8A5DC4 #BE5DC4
triadic
#8A5DC4 #C48A5D #5DC48A
tetradic
#8A5DC4 #C45D64 #97C45D #5DC4BE
square
#8A5DC4 #C45D64 #97C45D #5DC4BE
split-complementary
#8A5DC4 #C4BE5D #64C45D
monochromatic
#4E2C7A #6B3DA7 #8A5DC4 #AA8AD4 #CBB7E5

Accessibility & contrast

On white

4.73
#8A5DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A5DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DC4
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DC4#FFFFFF#000000##FFFFFF
##8A5DC41.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3973C8
Deuteranopia (green-blind)
#4673C2
Tritanopia (blue-blind)
#7F7088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5dc4;
/* rgb */ color: rgb(138, 93, 196);
/* oklch */ color: oklch(57.3% 0.157 301.8);
Tailwind
colors: {
  custom: {
    50: '#af8cd6',
    500: '#8a5dc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc4;
$custom-light: #af8cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc4",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 266.214,
    "s": 46.606,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57274,
    "c": 0.15687,
    "h": 301.8
  },
  "luminance": 0.17217
}

Semantic roles & 50–950 ramp

primary
#8A5DC4
secondary
#C1D3A9
accent
#D6529C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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