#8A5BCC#8A5BCC

#8A5BCC is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.5% C 0.170 H 300.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5BCC
RGBrgb(138, 91, 204)
HSLhsl(265, 53%, 58%)
HSVhsv(265, 55%, 80%)
CMYKcmyk(32.4%, 55.4%, 0%, 20%)
CIE-LABlab(48.57, 42.56, -51.84)
CIE-LCHlch(48.57, 67.07, 309.38°)
OKLaboklab(57.45% 0.0857 -0.1466)
OKLCHoklch(57.45% 0.17 300.3)
XYZxyz(25.1188, 17.2449, 59.1203)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BCC #9DCC5B
analogous
#5B64CC #8A5BCC #C35BCC
triadic
#8A5BCC #CC8A5B #5BCC8A
tetradic
#8A5BCC #CC5B64 #9DCC5B #5BCCC3
square
#8A5BCC #CC5B64 #9DCC5B #5BCCC3
split-complementary
#8A5BCC #CCC35B #64CC5B
monochromatic
#4F2984 #6B37B2 #8A5BCC #AB8ADB #CDB8E9

Accessibility & contrast

On white

4.72
#8A5BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A5BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BCC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BCC#FFFFFF#000000##FFFFFF
##8A5BCC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#3C73C9
Tritanopia (blue-blind)
#7C718B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bcc;
/* rgb */ color: rgb(138, 91, 204);
/* oklch */ color: oklch(57.5% 0.170 300.3);
Tailwind
colors: {
  custom: {
    50: '#b08bdc',
    500: '#8a5bcc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bcc;
$custom-light: #b08bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bcc",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 264.956,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5745,
    "c": 0.16981,
    "h": 300.3
  },
  "luminance": 0.17245
}

Semantic roles & 50–950 ramp

primary
#8A5BCC
secondary
#C5D8AB
accent
#DC4CA0
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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