#8A5CC2#8A5CC2

#8A5CC2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.0% C 0.156 H 302.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5CC2
RGBrgb(138, 92, 194)
HSLhsl(267, 46%, 56%)
HSVhsv(267, 53%, 76%)
CMYKcmyk(28.9%, 52.6%, 0%, 23.9%)
CIE-LABlab(48.20, 39.50, -46.67)
CIE-LCHlch(48.20, 61.14, 310.24°)
OKLaboklab(56.99% 0.0839 -0.1314)
OKLCHoklch(56.99% 0.156 302.6)
XYZxyz(24.0438, 16.9526, 53.0340)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CC2 #94C25C
analogous
#5C61C2 #8A5CC2 #BD5CC2
triadic
#8A5CC2 #C28A5C #5CC28A
tetradic
#8A5CC2 #C25C61 #94C25C #5CC2BD
square
#8A5CC2 #C25C61 #94C25C #5CC2BD
split-complementary
#8A5CC2 #C2BD5C #61C25C
monochromatic
#4E2D77 #6B3DA4 #8A5CC2 #AA89D3 #CAB5E3

Accessibility & contrast

On white

4.78
#8A5CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8A5CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CC2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CC2#FFFFFF#000000##FFFFFF
##8A5CC21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3972C5
Deuteranopia (green-blind)
#4772C0
Tritanopia (blue-blind)
#806F86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5cc2;
/* rgb */ color: rgb(138, 92, 194);
/* oklch */ color: oklch(57.0% 0.156 302.6);
Tailwind
colors: {
  custom: {
    50: '#af8bd5',
    500: '#8a5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cc2;
$custom-light: #af8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cc2",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 267.059,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56991,
    "c": 0.15596,
    "h": 302.6
  },
  "luminance": 0.16953
}

Semantic roles & 50–950 ramp

primary
#8A5CC2
secondary
#BFD2A8
accent
#D5539A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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