#8A5AEC#8A5AEC

#8A5AEC is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.5% C 0.210 H 294.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5AEC
RGBrgb(138, 90, 236)
HSLhsl(260, 79%, 64%)
HSVhsv(260, 62%, 93%)
CMYKcmyk(41.5%, 61.9%, 0%, 7.5%)
CIE-LABlab(50.42, 51.38, -67.02)
CIE-LCHlch(50.42, 84.45, 307.47°)
OKLaboklab(59.46% 0.0861 -0.1912)
OKLCHoklch(59.46% 0.21 294.3)
XYZxyz(29.2737, 18.7710, 81.4214)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AEC #BCEC5A
analogous
#5A73EC #8A5AEC #D35AEC
triadic
#8A5AEC #EC8A5A #5AEC8A
tetradic
#8A5AEC #EC5A73 #BCEC5A #5AECD3
square
#8A5AEC #EC5A73 #BCEC5A #5AECD3
split-complementary
#8A5AEC #ECD35A #73EC5A
monochromatic
#4A15B7 #6323E6 #8A5AEC #B191F2 #D8C8F9

Accessibility & contrast

On white

4.42
#8A5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8A5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AEC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AEC#FFFFFF#000000##000000
##8A5AEC1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#707B9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5aec;
/* rgb */ color: rgb(138, 90, 236);
/* oklch */ color: oklch(59.5% 0.210 294.3);
Tailwind
colors: {
  custom: {
    50: '#b28bf3',
    500: '#8a5aec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aec;
$custom-light: #b28bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aec",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 259.726,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59459,
    "c": 0.20969,
    "h": 294.3
  },
  "luminance": 0.18772
}

Semantic roles & 50–950 ramp

primary
#8A5AEC
secondary
#DAEBB7
accent
#DC0A97
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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