#8A5ECD#8A5ECD

#8A5ECD is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.0% C 0.167 H 299.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5ECD
RGBrgb(138, 94, 205)
HSLhsl(264, 53%, 59%)
HSVhsv(264, 54%, 80%)
CMYKcmyk(32.7%, 54.1%, 0%, 19.6%)
CIE-LABlab(49.27, 41.14, -51.28)
CIE-LCHlch(49.27, 65.74, 308.73°)
OKLaboklab(57.99% 0.0819 -0.145)
OKLCHoklch(57.99% 0.167 299.5)
XYZxyz(25.5007, 17.8163, 59.8412)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ECD #A1CD5E
analogous
#5E69CD #8A5ECD #C25ECD
triadic
#8A5ECD #CD8A5E #5ECD8A
tetradic
#8A5ECD #CD5E69 #A1CD5E #5ECDC2
square
#8A5ECD #CD5E69 #A1CD5E #5ECDC2
split-complementary
#8A5ECD #CDC25E #69CD5E
monochromatic
#4F2A87 #6A38B5 #8A5ECD #AC8DDC #CEBBEA

Accessibility & contrast

On white

4.60
#8A5ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A5ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ECD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ECD#FFFFFF#000000##FFFFFF
##8A5ECD1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3275D1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#7C748C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5ecd;
/* rgb */ color: rgb(138, 94, 205);
/* oklch */ color: oklch(58.0% 0.167 299.5);
Tailwind
colors: {
  custom: {
    50: '#b08ddd',
    500: '#8a5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ecd;
$custom-light: #b08ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ecd",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 263.784,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57989,
    "c": 0.16652,
    "h": 299.5
  },
  "luminance": 0.17816
}

Semantic roles & 50–950 ramp

primary
#8A5ECD
secondary
#C8D9AD
accent
#DC4CA3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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