#8A5EEC#8A5EEC

#8A5EEC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.0% C 0.204 H 293.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5EEC
RGBrgb(138, 94, 236)
HSLhsl(259, 79%, 65%)
HSVhsv(259, 60%, 93%)
CMYKcmyk(41.5%, 60.2%, 0%, 7.5%)
CIE-LABlab(51.23, 49.22, -65.71)
CIE-LCHlch(51.23, 82.10, 306.84°)
OKLaboklab(60.05% 0.0818 -0.1873)
OKLCHoklch(60.05% 0.204 293.6)
XYZxyz(29.6202, 19.4640, 81.5369)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EEC #C0EC5E
analogous
#5E79EC #8A5EEC #D15EEC
triadic
#8A5EEC #EC8A5E #5EEC8A
tetradic
#8A5EEC #EC5E79 #C0EC5E #5EECD1
square
#8A5EEC #EC5E79 #C0EC5E #5EECD1
split-complementary
#8A5EEC #ECD15E #79EC5E
monochromatic
#4916BA #6227E6 #8A5EEC #B295F2 #DACBF9

Accessibility & contrast

On white

4.29
#8A5EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A5EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EEC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EEC#FFFFFF#000000##000000
##8A5EEC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0078E9
Tritanopia (blue-blind)
#707E9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5eec;
/* rgb */ color: rgb(138, 94, 236);
/* oklch */ color: oklch(60.0% 0.204 293.6);
Tailwind
colors: {
  custom: {
    50: '#b28df3',
    500: '#8a5eec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eec;
$custom-light: #b28df3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eec",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 258.592,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60047,
    "c": 0.20441,
    "h": 293.6
  },
  "luminance": 0.19465
}

Semantic roles & 50–950 ramp

primary
#8A5EEC
secondary
#DCEBBB
accent
#DB0A9A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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