#8A5DC3#8A5DC3

#8A5DC3 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.2% C 0.156 H 302.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5DC3
RGBrgb(138, 93, 195)
HSLhsl(266, 46%, 56%)
HSVhsv(266, 52%, 76%)
CMYKcmyk(29.2%, 52.3%, 0%, 23.5%)
CIE-LABlab(48.48, 39.18, -46.81)
CIE-LCHlch(48.48, 61.04, 309.93°)
OKLaboklab(57.21% 0.0827 -0.1318)
OKLCHoklch(57.21% 0.156 302.1)
XYZxyz(24.2437, 17.1721, 53.6565)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC3 #96C35D
analogous
#5D63C3 #8A5DC3 #BD5DC3
triadic
#8A5DC3 #C38A5D #5DC38A
tetradic
#8A5DC3 #C35D63 #96C35D #5DC3BD
square
#8A5DC3 #C35D63 #96C35D #5DC3BD
split-complementary
#8A5DC3 #C3BD5D #63C35D
monochromatic
#4E2D79 #6B3DA6 #8A5DC3 #AA8AD4 #CBB6E4

Accessibility & contrast

On white

4.74
#8A5DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A5DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DC3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DC3#FFFFFF#000000##FFFFFF
##8A5DC31.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C6
Deuteranopia (green-blind)
#4773C1
Tritanopia (blue-blind)
#7F7087
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5dc3;
/* rgb */ color: rgb(138, 93, 195);
/* oklch */ color: oklch(57.2% 0.156 302.1);
Tailwind
colors: {
  custom: {
    50: '#af8cd6',
    500: '#8a5dc3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc3;
$custom-light: #af8cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc3",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 195
  },
  "hsl": {
    "h": 266.471,
    "s": 45.946,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57213,
    "c": 0.15562,
    "h": 302.1
  },
  "luminance": 0.17172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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