#8A5BC5#8A5BC5

#8A5BC5 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.161 H 302.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC5
RGBrgb(138, 91, 197)
HSLhsl(267, 48%, 56%)
HSVhsv(267, 54%, 77%)
CMYKcmyk(29.9%, 53.8%, 0%, 22.7%)
CIE-LABlab(48.15, 40.80, -48.47)
CIE-LCHlch(48.15, 63.36, 310.09°)
OKLaboklab(57.01% 0.0855 -0.1367)
OKLCHoklch(57.01% 0.161 302)
XYZxyz(24.2981, 16.9166, 54.7976)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC5 #96C55B
analogous
#5B61C5 #8A5BC5 #BF5BC5
triadic
#8A5BC5 #C58A5B #5BC58A
tetradic
#8A5BC5 #C55B61 #96C55B #5BC5BF
square
#8A5BC5 #C55B61 #96C55B #5BC5BF
split-complementary
#8A5BC5 #C5BF5B #61C55B
monochromatic
#4E2B7A #6B3BA8 #8A5BC5 #AA88D5 #CBB5E5

Accessibility & contrast

On white

4.79
#8A5BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8A5BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC5#FFFFFF#000000##FFFFFF
##8A5BC51.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3472C9
Deuteranopia (green-blind)
#4372C2
Tritanopia (blue-blind)
#7F6F87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5bc5;
/* rgb */ color: rgb(138, 91, 197);
/* oklch */ color: oklch(57.0% 0.161 302.0);
Tailwind
colors: {
  custom: {
    50: '#af8bd7',
    500: '#8a5bc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc5;
$custom-light: #af8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc5",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 197
  },
  "hsl": {
    "h": 266.604,
    "s": 47.748,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.16123,
    "h": 302
  },
  "luminance": 0.16917
}

Semantic roles & 50–950 ramp

primary
#8A5BC5
secondary
#C0D4A8
accent
#D7509C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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