#8A5CEC#8A5CEC

#8A5CEC is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.8% C 0.207 H 293.9°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5CEC
RGBrgb(138, 92, 236)
HSLhsl(259, 79%, 64%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(41.5%, 61%, 0%, 7.5%)
CIE-LABlab(50.82, 50.31, -66.37)
CIE-LCHlch(50.82, 83.28, 307.16°)
OKLaboklab(59.75% 0.084 -0.1893)
OKLCHoklch(59.75% 0.207 293.9)
XYZxyz(29.4446, 19.1129, 81.4784)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CEC #BEEC5C
analogous
#5C76EC #8A5CEC #D25CEC
triadic
#8A5CEC #EC8A5C #5CEC8A
tetradic
#8A5CEC #EC5C76 #BEEC5C #5CECD2
square
#8A5CEC #EC5C76 #BEEC5C #5CECD2
split-complementary
#8A5CEC #ECD25C #76EC5C
monochromatic
#4915B8 #6325E6 #8A5CEC #B193F2 #D9CAF9

Accessibility & contrast

On white

4.35
#8A5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8A5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CEC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CEC#FFFFFF#000000##000000
##8A5CEC1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#707D9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5cec;
/* rgb */ color: rgb(138, 92, 236);
/* oklch */ color: oklch(59.8% 0.207 293.9);
Tailwind
colors: {
  custom: {
    50: '#b28cf3',
    500: '#8a5cec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cec;
$custom-light: #b28cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cec",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 259.167,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59751,
    "c": 0.20707,
    "h": 293.9
  },
  "luminance": 0.19114
}

Semantic roles & 50–950 ramp

primary
#8A5CEC
secondary
#DBEBB9
accent
#DB0A99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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