#8A5DC2#8A5DC2

#8A5DC2 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.154 H 302.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5DC2
RGBrgb(138, 93, 194)
HSLhsl(267, 45%, 56%)
HSVhsv(267, 52%, 76%)
CMYKcmyk(28.9%, 52.1%, 0%, 23.9%)
CIE-LABlab(48.42, 38.93, -46.32)
CIE-LCHlch(48.42, 60.51, 310.05°)
OKLaboklab(57.15% 0.0826 -0.1304)
OKLCHoklch(57.15% 0.154 302.4)
XYZxyz(24.1310, 17.1270, 53.0630)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC2 #95C25D
analogous
#5D63C2 #8A5DC2 #BD5DC2
triadic
#8A5DC2 #C28A5D #5DC28A
tetradic
#8A5DC2 #C25D63 #95C25D #5DC2BD
square
#8A5DC2 #C25D63 #95C25D #5DC2BD
split-complementary
#8A5DC2 #C2BD5D #63C25D
monochromatic
#4E2D78 #6B3EA4 #8A5DC2 #AA89D3 #CAB6E3

Accessibility & contrast

On white

4.75
#8A5DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5DC2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DC2#FFFFFF#000000##FFFFFF
##8A5DC21.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B72C5
Deuteranopia (green-blind)
#4873C0
Tritanopia (blue-blind)
#807087
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5dc2;
/* rgb */ color: rgb(138, 93, 194);
/* oklch */ color: oklch(57.2% 0.154 302.4);
Tailwind
colors: {
  custom: {
    50: '#af8cd5',
    500: '#8a5dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc2;
$custom-light: #af8cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc2",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 266.733,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57153,
    "c": 0.15438,
    "h": 302.4
  },
  "luminance": 0.17127
}

Semantic roles & 50–950 ramp

primary
#8A5DC2
secondary
#C0D2A9
accent
#D5539B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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