#8A5BC2#8A5BC2

#8A5BC2 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.158 H 302.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC2
RGBrgb(138, 91, 194)
HSLhsl(267, 46%, 56%)
HSVhsv(267, 53%, 76%)
CMYKcmyk(28.9%, 53.1%, 0%, 23.9%)
CIE-LABlab(47.98, 40.06, -47.02)
CIE-LCHlch(47.98, 61.77, 310.43°)
OKLaboklab(56.83% 0.0853 -0.1325)
OKLCHoklch(56.83% 0.158 302.8)
XYZxyz(23.9577, 16.7805, 53.0053)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC2 #93C25B
analogous
#5B5FC2 #8A5BC2 #BE5BC2
triadic
#8A5BC2 #C28A5B #5BC28A
tetradic
#8A5BC2 #C25B5F #93C25B #5BC2BE
square
#8A5BC2 #C25B5F #93C25B #5BC2BE
split-complementary
#8A5BC2 #C2BE5B #5FC25B
monochromatic
#4E2C77 #6B3DA3 #8A5BC2 #AA88D3 #CAB4E3

Accessibility & contrast

On white

4.82
#8A5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC2#FFFFFF#000000##FFFFFF
##8A5BC21.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3771C5
Deuteranopia (green-blind)
#4672C0
Tritanopia (blue-blind)
#806E86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5bc2;
/* rgb */ color: rgb(138, 91, 194);
/* oklch */ color: oklch(56.8% 0.158 302.8);
Tailwind
colors: {
  custom: {
    50: '#af8bd5',
    500: '#8a5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc2;
$custom-light: #af8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc2",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 267.379,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56829,
    "c": 0.15752,
    "h": 302.8
  },
  "luminance": 0.1678
}

Semantic roles & 50–950 ramp

primary
#8A5BC2
secondary
#BED2A7
accent
#D5529A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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