#8A5BCD#8A5BCD

#8A5BCD is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.171 H 300.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5BCD
RGBrgb(138, 91, 205)
HSLhsl(265, 53%, 58%)
HSVhsv(265, 56%, 80%)
CMYKcmyk(32.7%, 55.6%, 0%, 19.6%)
CIE-LABlab(48.63, 42.81, -52.32)
CIE-LCHlch(48.63, 67.60, 309.29°)
OKLaboklab(57.51% 0.0858 -0.148)
OKLCHoklch(57.51% 0.171 300.1)
XYZxyz(25.2391, 17.2930, 59.7540)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BCD #9ECD5B
analogous
#5B65CD #8A5BCD #C35BCD
triadic
#8A5BCD #CD8A5B #5BCD8A
tetradic
#8A5BCD #CD5B65 #9ECD5B #5BCDC3
square
#8A5BCD #CD5B65 #9ECD5B #5BCDC3
split-complementary
#8A5BCD #CDC35B #65CD5B
monochromatic
#4F2985 #6A37B4 #8A5BCD #AB8ADB #CDB9EA

Accessibility & contrast

On white

4.71
#8A5BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A5BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BCD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BCD#FFFFFF#000000##FFFFFF
##8A5BCD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D1
Deuteranopia (green-blind)
#3B73CA
Tritanopia (blue-blind)
#7C728B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bcd;
/* rgb */ color: rgb(138, 91, 205);
/* oklch */ color: oklch(57.5% 0.171 300.1);
Tailwind
colors: {
  custom: {
    50: '#b08bdd',
    500: '#8a5bcd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bcd;
$custom-light: #b08bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bcd",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 264.737,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57513,
    "c": 0.17103,
    "h": 300.1
  },
  "luminance": 0.17293
}

Semantic roles & 50–950 ramp

primary
#8A5BCD
secondary
#C6D9AB
accent
#DD4BA1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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