#8A5BEA#8A5BEA

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

Color values

HEX#8A5BEA
RGBrgb(138, 91, 234)
HSLhsl(260, 77%, 64%)
HSVhsv(260, 61%, 92%)
CMYKcmyk(41%, 61.1%, 0%, 8.2%)
CIE-LABlab(50.48, 50.31, -65.79)
CIE-LCHlch(50.48, 82.83, 307.41°)
OKLaboklab(59.46% 0.0852 -0.1876)
OKLCHoklch(59.46% 0.206 294.4)
XYZxyz(29.0696, 18.8253, 79.9280)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BEA #BBEA5B
analogous
#5B73EA #8A5BEA #D15BEA
triadic
#8A5BEA #EA8A5B #5BEA8A
tetradic
#8A5BEA #EA5B73 #BBEA5B #5BEAD1
square
#8A5BEA #EA5B73 #BBEA5B #5BEAD1
split-complementary
#8A5BEA #EAD15B #73EA5B
monochromatic
#4A17B4 #6325E3 #8A5BEA #B191F1 #D7C8F8

Accessibility & contrast

On white

4.41
#8A5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8A5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BEA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BEA#FFFFFF#000000##000000
##8A5BEA1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#0076E7
Tritanopia (blue-blind)
#717B9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5bea;
/* rgb */ color: rgb(138, 91, 234);
/* oklch */ color: oklch(59.5% 0.206 294.4);
Tailwind
colors: {
  custom: {
    50: '#b28bf2',
    500: '#8a5bea',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bea;
$custom-light: #b28bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bea",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 259.72,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59463,
    "c": 0.20602,
    "h": 294.4
  },
  "luminance": 0.18826
}

Semantic roles & 50–950 ramp

primary
#8A5BEA
secondary
#D9EAB7
accent
#DA0C96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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