#8A5CC5#8A5CC5

#8A5CC5 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.2% C 0.160 H 301.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5CC5
RGBrgb(138, 92, 197)
HSLhsl(266, 48%, 57%)
HSVhsv(266, 53%, 77%)
CMYKcmyk(29.9%, 53.3%, 0%, 22.7%)
CIE-LABlab(48.37, 40.24, -48.13)
CIE-LCHlch(48.37, 62.74, 309.90°)
OKLaboklab(57.17% 0.0841 -0.1357)
OKLCHoklch(57.17% 0.16 301.8)
XYZxyz(24.3841, 17.0887, 54.8263)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CC5 #97C55C
analogous
#5C63C5 #8A5CC5 #BF5CC5
triadic
#8A5CC5 #C58A5C #5CC58A
tetradic
#8A5CC5 #C55C63 #97C55C #5CC5BF
square
#8A5CC5 #C55C63 #97C55C #5CC5BF
split-complementary
#8A5CC5 #C5BF5C #63C55C
monochromatic
#4E2C7B #6B3CA8 #8A5CC5 #AA89D5 #CBB6E5

Accessibility & contrast

On white

4.75
#8A5CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A5CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CC5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CC5#FFFFFF#000000##FFFFFF
##8A5CC51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3672C9
Deuteranopia (green-blind)
#4472C2
Tritanopia (blue-blind)
#7F7088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5cc5;
/* rgb */ color: rgb(138, 92, 197);
/* oklch */ color: oklch(57.2% 0.160 301.8);
Tailwind
colors: {
  custom: {
    50: '#af8bd7',
    500: '#8a5cc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cc5;
$custom-light: #af8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cc5",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 266.286,
    "s": 47.511,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57173,
    "c": 0.15966,
    "h": 301.8
  },
  "luminance": 0.17089
}

Semantic roles & 50–950 ramp

primary
#8A5CC5
secondary
#C1D4A9
accent
#D7519C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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