#8A5DC7#8A5DC7

#8A5DC7 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.5% C 0.161 H 301.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5DC7
RGBrgb(138, 93, 199)
HSLhsl(265, 49%, 57%)
HSVhsv(265, 53%, 78%)
CMYKcmyk(30.7%, 53.3%, 0%, 22%)
CIE-LABlab(48.70, 40.18, -48.75)
CIE-LCHlch(48.70, 63.17, 309.50°)
OKLaboklab(57.46% 0.0829 -0.1375)
OKLCHoklch(57.46% 0.161 301.1)
XYZxyz(24.7020, 17.3554, 56.0703)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC7 #9AC75D
analogous
#5D65C7 #8A5DC7 #BF5DC7
triadic
#8A5DC7 #C78A5D #5DC78A
tetradic
#8A5DC7 #C75D65 #9AC75D #5DC7BF
square
#8A5DC7 #C75D65 #9AC75D #5DC7BF
split-complementary
#8A5DC7 #C7BF5D #65C75D
monochromatic
#4F2C7E #6B3BAC #8A5DC7 #AB8AD7 #CCB8E6

Accessibility & contrast

On white

4.70
#8A5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DC7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DC7#FFFFFF#000000##FFFFFF
##8A5DC71.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3673CB
Deuteranopia (green-blind)
#4473C4
Tritanopia (blue-blind)
#7E7189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5dc7;
/* rgb */ color: rgb(138, 93, 199);
/* oklch */ color: oklch(57.5% 0.161 301.1);
Tailwind
colors: {
  custom: {
    50: '#af8cd8',
    500: '#8a5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc7;
$custom-light: #af8cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc7",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 265.472,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57456,
    "c": 0.1606,
    "h": 301.1
  },
  "luminance": 0.17355
}

Semantic roles & 50–950 ramp

primary
#8A5DC7
secondary
#C3D5AA
accent
#D8509E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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