#8A5DC8#8A5DC8

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

Color values

HEX#8A5DC8
RGBrgb(138, 93, 200)
HSLhsl(265, 49%, 57%)
HSVhsv(265, 54%, 78%)
CMYKcmyk(31%, 53.5%, 0%, 21.6%)
CIE-LABlab(48.76, 40.43, -49.23)
CIE-LCHlch(48.76, 63.71, 309.40°)
OKLaboklab(57.52% 0.083 -0.1389)
OKLCHoklch(57.52% 0.162 300.9)
XYZxyz(24.8185, 17.4020, 56.6838)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC8 #9BC85D
analogous
#5D65C8 #8A5DC8 #C05DC8
triadic
#8A5DC8 #C88A5D #5DC88A
tetradic
#8A5DC8 #C85D65 #9BC85D #5DC8C0
square
#8A5DC8 #C85D65 #9BC85D #5DC8C0
split-complementary
#8A5DC8 #C8C05D #65C85D
monochromatic
#4F2B7F #6B3BAD #8A5DC8 #AB8BD8 #CCB8E7

Accessibility & contrast

On white

4.69
#8A5DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8A5DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DC8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DC8#FFFFFF#000000##FFFFFF
##8A5DC81.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3573CC
Deuteranopia (green-blind)
#4373C5
Tritanopia (blue-blind)
#7E728A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5dc8;
/* rgb */ color: rgb(138, 93, 200);
/* oklch */ color: oklch(57.5% 0.162 300.9);
Tailwind
colors: {
  custom: {
    50: '#af8cd9',
    500: '#8a5dc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc8;
$custom-light: #af8cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc8",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 200
  },
  "hsl": {
    "h": 265.234,
    "s": 49.309,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57518,
    "c": 0.16184,
    "h": 300.9
  },
  "luminance": 0.17402
}

Semantic roles & 50–950 ramp

primary
#8A5DC8
secondary
#C4D6AB
accent
#D94F9F
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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