#8A5BC1#8A5BC1

#8A5BC1 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.156 H 303.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC1
RGBrgb(138, 91, 193)
HSLhsl(268, 45%, 56%)
HSVhsv(268, 53%, 76%)
CMYKcmyk(28.5%, 52.8%, 0%, 24.3%)
CIE-LABlab(47.93, 39.81, -46.53)
CIE-LCHlch(47.93, 61.24, 310.55°)
OKLaboklab(56.77% 0.0852 -0.131)
OKLCHoklch(56.77% 0.156 303)
XYZxyz(23.8458, 16.7357, 52.4158)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC1 #92C15B
analogous
#5B5FC1 #8A5BC1 #BD5BC1
triadic
#8A5BC1 #C18A5B #5BC18A
tetradic
#8A5BC1 #C15B5F #92C15B #5BC1BD
square
#8A5BC1 #C15B5F #92C15B #5BC1BD
split-complementary
#8A5BC1 #C1BD5B #5FC15B
monochromatic
#4E2C75 #6B3DA2 #8A5BC1 #AA87D2 #C9B4E3

Accessibility & contrast

On white

4.83
#8A5BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A5BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC1#FFFFFF#000000##FFFFFF
##8A5BC11.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3871C4
Deuteranopia (green-blind)
#4672BF
Tritanopia (blue-blind)
#806E85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5bc1;
/* rgb */ color: rgb(138, 91, 193);
/* oklch */ color: oklch(56.8% 0.156 303.0);
Tailwind
colors: {
  custom: {
    50: '#af8bd4',
    500: '#8a5bc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc1;
$custom-light: #af8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc1",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 267.647,
    "s": 45.133,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56769,
    "c": 0.1563,
    "h": 303
  },
  "luminance": 0.16736
}

Semantic roles & 50–950 ramp

primary
#8A5BC1
secondary
#BED1A7
accent
#D55399
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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