#8A5CC8#8A5CC8

#8A5CC8 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.4% C 0.163 H 301.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5CC8
RGBrgb(138, 92, 200)
HSLhsl(266, 50%, 57%)
HSVhsv(266, 54%, 78%)
CMYKcmyk(31%, 54%, 0%, 21.6%)
CIE-LABlab(48.55, 40.99, -49.58)
CIE-LCHlch(48.55, 64.33, 309.59°)
OKLaboklab(57.36% 0.0843 -0.1399)
OKLCHoklch(57.36% 0.163 301.1)
XYZxyz(24.7313, 17.2276, 56.6547)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CC8 #9AC85C
analogous
#5C64C8 #8A5CC8 #C05CC8
triadic
#8A5CC8 #C88A5C #5CC88A
tetradic
#8A5CC8 #C85C64 #9AC85C #5CC8C0
square
#8A5CC8 #C85C64 #9AC85C #5CC8C0
split-complementary
#8A5CC8 #C8C05C #64C85C
monochromatic
#4F2B7F #6B3AAD #8A5CC8 #AB8AD7 #CCB8E7

Accessibility & contrast

On white

4.72
#8A5CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A5CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CC8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CC8#FFFFFF#000000##FFFFFF
##8A5CC81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3373CC
Deuteranopia (green-blind)
#4273C5
Tritanopia (blue-blind)
#7E7189
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5cc8;
/* rgb */ color: rgb(138, 92, 200);
/* oklch */ color: oklch(57.4% 0.163 301.1);
Tailwind
colors: {
  custom: {
    50: '#af8bd9',
    500: '#8a5cc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cc8;
$custom-light: #af8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cc8",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 265.556,
    "s": 49.541,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57357,
    "c": 0.16337,
    "h": 301.1
  },
  "luminance": 0.17228
}

Semantic roles & 50–950 ramp

primary
#8A5CC8
secondary
#C3D6AA
accent
#D94F9E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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