#8A5BEC#8A5BEC

#8A5BEC is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.6% C 0.208 H 294.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5BEC
RGBrgb(138, 91, 236)
HSLhsl(259, 79%, 64%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(41.5%, 61.4%, 0%, 7.5%)
CIE-LABlab(50.62, 50.84, -66.70)
CIE-LCHlch(50.62, 83.86, 307.32°)
OKLaboklab(59.61% 0.0851 -0.1902)
OKLCHoklch(59.61% 0.208 294.1)
XYZxyz(29.3586, 18.9408, 81.4497)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BEC #BDEC5B
analogous
#5B75EC #8A5BEC #D25BEC
triadic
#8A5BEC #EC8A5B #5BEC8A
tetradic
#8A5BEC #EC5B75 #BDEC5B #5BECD2
square
#8A5BEC #EC5B75 #BDEC5B #5BECD2
split-complementary
#8A5BEC #ECD25B #75EC5B
monochromatic
#4A15B7 #6324E6 #8A5BEC #B192F2 #D8C9F9

Accessibility & contrast

On white

4.39
#8A5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BEC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BEC#FFFFFF#000000##000000
##8A5BEC1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#707C9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5bec;
/* rgb */ color: rgb(138, 91, 236);
/* oklch */ color: oklch(59.6% 0.208 294.1);
Tailwind
colors: {
  custom: {
    50: '#b28cf3',
    500: '#8a5bec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bec;
$custom-light: #b28cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bec",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 259.448,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59605,
    "c": 0.20838,
    "h": 294.1
  },
  "luminance": 0.18942
}

Semantic roles & 50–950 ramp

primary
#8A5BEC
secondary
#DAEBB8
accent
#DC0A98
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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