#8A5BC3#8A5BC3

#8A5BC3 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.159 H 302.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC3
RGBrgb(138, 91, 195)
HSLhsl(267, 46%, 56%)
HSVhsv(267, 53%, 76%)
CMYKcmyk(29.2%, 53.3%, 0%, 23.5%)
CIE-LABlab(48.04, 40.31, -47.50)
CIE-LCHlch(48.04, 62.30, 310.31°)
OKLaboklab(56.89% 0.0853 -0.1339)
OKLCHoklch(56.89% 0.159 302.5)
XYZxyz(24.0704, 16.8256, 53.5987)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC3 #94C35B
analogous
#5B60C3 #8A5BC3 #BE5BC3
triadic
#8A5BC3 #C38A5B #5BC38A
tetradic
#8A5BC3 #C35B60 #94C35B #5BC3BE
square
#8A5BC3 #C35B60 #94C35B #5BC3BE
split-complementary
#8A5BC3 #C3BE5B #60C35B
monochromatic
#4E2C78 #6B3CA5 #8A5BC3 #AA88D3 #CAB5E4

Accessibility & contrast

On white

4.81
#8A5BC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8A5BC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC3#FFFFFF#000000##FFFFFF
##8A5BC31.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3671C7
Deuteranopia (green-blind)
#4572C1
Tritanopia (blue-blind)
#7F6F86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5bc3;
/* rgb */ color: rgb(138, 91, 195);
/* oklch */ color: oklch(56.9% 0.159 302.5);
Tailwind
colors: {
  custom: {
    50: '#af8bd6',
    500: '#8a5bc3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc3;
$custom-light: #af8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc3",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 195
  },
  "hsl": {
    "h": 267.115,
    "s": 46.429,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5689,
    "c": 0.15876,
    "h": 302.5
  },
  "luminance": 0.16826
}

Semantic roles & 50–950 ramp

primary
#8A5BC3
secondary
#BFD2A7
accent
#D6529A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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