#8A5BCB#8A5BCB

#8A5BCB is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.4% C 0.169 H 300.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5BCB
RGBrgb(138, 91, 203)
HSLhsl(265, 52%, 58%)
HSVhsv(265, 55%, 80%)
CMYKcmyk(32%, 55.2%, 0%, 20.4%)
CIE-LABlab(48.51, 42.31, -51.36)
CIE-LCHlch(48.51, 66.54, 309.48°)
OKLaboklab(57.39% 0.0857 -0.1452)
OKLCHoklch(57.39% 0.169 300.6)
XYZxyz(24.9993, 17.1971, 58.4907)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BCB #9CCB5B
analogous
#5B64CB #8A5BCB #C25BCB
triadic
#8A5BCB #CB8A5B #5BCB8A
tetradic
#8A5BCB #CB5B64 #9CCB5B #5BCBC2
square
#8A5BCB #CB5B64 #9CCB5B #5BCBC2
split-complementary
#8A5BCB #CBC25B #64CB5B
monochromatic
#4F2982 #6B38B1 #8A5BCB #AB89DA #CCB8E8

Accessibility & contrast

On white

4.73
#8A5BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A5BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BCB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BCB#FFFFFF#000000##FFFFFF
##8A5BCB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D73CF
Deuteranopia (green-blind)
#3D73C8
Tritanopia (blue-blind)
#7D718A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bcb;
/* rgb */ color: rgb(138, 91, 203);
/* oklch */ color: oklch(57.4% 0.169 300.6);
Tailwind
colors: {
  custom: {
    50: '#b08bdb',
    500: '#8a5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bcb;
$custom-light: #b08bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bcb",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 265.179,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57386,
    "c": 0.16859,
    "h": 300.6
  },
  "luminance": 0.17197
}

Semantic roles & 50–950 ramp

primary
#8A5BCB
secondary
#C5D7AA
accent
#DB4C9F
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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