#8A5BC9#8A5BC9

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

Color values

HEX#8A5BC9
RGBrgb(138, 91, 201)
HSLhsl(266, 50%, 57%)
HSVhsv(266, 55%, 79%)
CMYKcmyk(31.3%, 54.7%, 0%, 21.2%)
CIE-LABlab(48.39, 41.80, -50.40)
CIE-LCHlch(48.39, 65.48, 309.67°)
OKLaboklab(57.26% 0.0856 -0.1424)
OKLCHoklch(57.26% 0.166 301)
XYZxyz(24.7625, 17.1024, 57.2435)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC9 #9AC95B
analogous
#5B63C9 #8A5BC9 #C15BC9
triadic
#8A5BC9 #C98A5B #5BC98A
tetradic
#8A5BC9 #C95B63 #9AC95B #5BC9C1
square
#8A5BC9 #C95B63 #9AC95B #5BC9C1
split-complementary
#8A5BC9 #C9C15B #63C95B
monochromatic
#4F2A80 #6B39AE #8A5BC9 #AB89D8 #CCB7E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5BC9#FFFFFF#000000##FFFFFF
##8A5BC91.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)
#3072CD
Deuteranopia (green-blind)
#3F72C6
Tritanopia (blue-blind)
#7D7189
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bc9;
/* rgb */ color: rgb(138, 91, 201);
/* oklch */ color: oklch(57.3% 0.166 301.0);
Tailwind
colors: {
  custom: {
    50: '#af8bda',
    500: '#8a5bc9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc9;
$custom-light: #af8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc9",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 201
  },
  "hsl": {
    "h": 265.636,
    "s": 50.459,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57261,
    "c": 0.16614,
    "h": 301
  },
  "luminance": 0.17102
}

Semantic roles & 50–950 ramp

primary
#8A5BC9
secondary
#C3D6AA
accent
#DA4E9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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