#8A5CC4#8A5CC4

#8A5CC4 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.1% C 0.158 H 302.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A5CC4
RGBrgb(138, 92, 196)
HSLhsl(267, 47%, 56%)
HSVhsv(267, 53%, 77%)
CMYKcmyk(29.6%, 53.1%, 0%, 23.1%)
CIE-LABlab(48.31, 39.99, -47.64)
CIE-LCHlch(48.31, 62.20, 310.01°)
OKLaboklab(57.11% 0.0841 -0.1343)
OKLCHoklch(57.11% 0.158 302)
XYZxyz(24.2699, 17.0430, 54.2249)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CC4 #96C45C
analogous
#5C62C4 #8A5CC4 #BE5CC4
triadic
#8A5CC4 #C48A5C #5CC48A
tetradic
#8A5CC4 #C45C62 #96C45C #5CC4BE
square
#8A5CC4 #C45C62 #96C45C #5CC4BE
split-complementary
#8A5CC4 #C4BE5C #62C45C
monochromatic
#4E2C7A #6B3CA7 #8A5CC4 #AA89D4 #CBB6E5

Accessibility & contrast

On white

4.76
#8A5CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A5CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CC4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CC4#FFFFFF#000000##FFFFFF
##8A5CC41.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3772C8
Deuteranopia (green-blind)
#4572C2
Tritanopia (blue-blind)
#7F7087
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5cc4;
/* rgb */ color: rgb(138, 92, 196);
/* oklch */ color: oklch(57.1% 0.158 302.0);
Tailwind
colors: {
  custom: {
    50: '#af8bd6',
    500: '#8a5cc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cc4;
$custom-light: #af8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cc4",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 196
  },
  "hsl": {
    "h": 266.538,
    "s": 46.847,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57112,
    "c": 0.15843,
    "h": 302
  },
  "luminance": 0.17043
}

Semantic roles & 50–950 ramp

primary
#8A5CC4
secondary
#C0D3A9
accent
#D6519C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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