#8A5ECC#8A5ECC

#8A5ECC is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.9% C 0.165 H 299.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5ECC
RGBrgb(138, 94, 204)
HSLhsl(264, 52%, 58%)
HSVhsv(264, 54%, 80%)
CMYKcmyk(32.4%, 53.9%, 0%, 20%)
CIE-LABlab(49.21, 40.88, -50.81)
CIE-LCHlch(49.21, 65.21, 308.82°)
OKLaboklab(57.93% 0.0819 -0.1435)
OKLCHoklch(57.93% 0.165 299.7)
XYZxyz(25.3804, 17.7681, 59.2075)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ECC #A0CC5E
analogous
#5E69CC #8A5ECC #C15ECC
triadic
#8A5ECC #CC8A5E #5ECC8A
tetradic
#8A5ECC #CC5E69 #A0CC5E #5ECCC1
square
#8A5ECC #CC5E69 #A0CC5E #5ECCC1
split-complementary
#8A5ECC #CCC15E #69CC5E
monochromatic
#4F2A85 #6A39B4 #8A5ECC #AC8CDB #CEBBE9

Accessibility & contrast

On white

4.61
#8A5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8A5ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ECC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ECC#FFFFFF#000000##FFFFFF
##8A5ECC1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3375D0
Deuteranopia (green-blind)
#4074C9
Tritanopia (blue-blind)
#7C748C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5ecc;
/* rgb */ color: rgb(138, 94, 204);
/* oklch */ color: oklch(57.9% 0.165 299.7);
Tailwind
colors: {
  custom: {
    50: '#b08ddc',
    500: '#8a5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ecc;
$custom-light: #b08ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ecc",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 264,
    "s": 51.887,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57927,
    "c": 0.16527,
    "h": 299.7
  },
  "luminance": 0.17768
}

Semantic roles & 50–950 ramp

primary
#8A5ECC
secondary
#C7D9AD
accent
#DB4CA2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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