#8A5CCC#8A5CCC

#8A5CCC is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.6% C 0.168 H 300.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A5CCC
RGBrgb(138, 92, 204)
HSLhsl(265, 52%, 58%)
HSVhsv(265, 55%, 80%)
CMYKcmyk(32.4%, 54.9%, 0%, 20%)
CIE-LABlab(48.78, 42.00, -51.50)
CIE-LCHlch(48.78, 66.45, 309.20°)
OKLaboklab(57.61% 0.0845 -0.1456)
OKLCHoklch(57.61% 0.168 300.1)
XYZxyz(25.2049, 17.4170, 59.1490)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CCC #9ECC5C
analogous
#5C66CC #8A5CCC #C25CCC
triadic
#8A5CCC #CC8A5C #5CCC8A
tetradic
#8A5CCC #CC5C66 #9ECC5C #5CCCC2
square
#8A5CCC #CC5C66 #9ECC5C #5CCCC2
split-complementary
#8A5CCC #CCC25C #66CC5C
monochromatic
#4F2984 #6A38B3 #8A5CCC #AB8BDB #CDB9E9

Accessibility & contrast

On white

4.68
#8A5CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8A5CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CCC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CCC#FFFFFF#000000##FFFFFF
##8A5CCC1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E74D0
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#7C728B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ccc;
/* rgb */ color: rgb(138, 92, 204);
/* oklch */ color: oklch(57.6% 0.168 300.1);
Tailwind
colors: {
  custom: {
    50: '#b08cdc',
    500: '#8a5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ccc;
$custom-light: #b08cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ccc",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 264.643,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.16831,
    "h": 300.1
  },
  "luminance": 0.17417
}

Semantic roles & 50–950 ramp

primary
#8A5CCC
secondary
#C6D8AC
accent
#DC4CA1
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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