#8A5CCE#8A5CCE

#8A5CCE is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.7% C 0.171 H 299.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5CCE
RGBrgb(138, 92, 206)
HSLhsl(264, 54%, 58%)
HSVhsv(264, 55%, 81%)
CMYKcmyk(33%, 55.3%, 0%, 19.2%)
CIE-LABlab(48.90, 42.51, -52.45)
CIE-LCHlch(48.90, 67.52, 309.02°)
OKLaboklab(57.73% 0.0845 -0.1484)
OKLCHoklch(57.73% 0.171 299.7)
XYZxyz(25.4463, 17.5136, 60.4204)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CCE #A0CE5C
analogous
#5C67CE #8A5CCE #C35CCE
triadic
#8A5CCE #CE8A5C #5CCE8A
tetradic
#8A5CCE #CE5C67 #A0CE5C #5CCEC3
square
#8A5CCE #CE5C67 #A0CE5C #5CCEC3
split-complementary
#8A5CCE #CEC35C #67CE5C
monochromatic
#4F2987 #6A37B6 #8A5CCE #AC8BDC #CEBAEA

Accessibility & contrast

On white

4.66
#8A5CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A5CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CCE
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CCE#FFFFFF#000000##FFFFFF
##8A5CCE1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C74D2
Deuteranopia (green-blind)
#3C73CB
Tritanopia (blue-blind)
#7C738C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5cce;
/* rgb */ color: rgb(138, 92, 206);
/* oklch */ color: oklch(57.7% 0.171 299.7);
Tailwind
colors: {
  custom: {
    50: '#b08cdd',
    500: '#8a5cce',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cce;
$custom-light: #b08cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cce",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 206
  },
  "hsl": {
    "h": 264.211,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57734,
    "c": 0.17076,
    "h": 299.7
  },
  "luminance": 0.17514
}

Semantic roles & 50–950 ramp

primary
#8A5CCE
secondary
#C7DAAC
accent
#DD4BA2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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