#8A5CE7#8A5CE7

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

Color values

HEX#8A5CE7
RGBrgb(138, 92, 231)
HSLhsl(260, 74%, 63%)
HSVhsv(260, 60%, 91%)
CMYKcmyk(40.3%, 60.2%, 0%, 9.4%)
CIE-LABlab(50.48, 48.99, -64.10)
CIE-LCHlch(50.48, 80.68, 307.39°)
OKLaboklab(59.4% 0.0842 -0.1826)
OKLCHoklch(59.4% 0.201 294.8)
XYZxyz(28.7284, 18.8264, 77.7061)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE7 #B9E75C
analogous
#5C73E7 #8A5CE7 #CF5CE7
triadic
#8A5CE7 #E78A5C #5CE78A
tetradic
#8A5CE7 #E75C73 #B9E75C #5CE7CF
square
#8A5CE7 #E75C73 #B9E75C #5CE7CF
split-complementary
#8A5CE7 #E7CF5C #73E75C
monochromatic
#4B1AAF #6427DF #8A5CE7 #B091EF #D7C7F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5CE7#FFFFFF#000000##000000
##8A5CE71.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)
#0079EB
Deuteranopia (green-blind)
#0B76E4
Tritanopia (blue-blind)
#727B99
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ce7;
/* rgb */ color: rgb(138, 92, 231);
/* oklch */ color: oklch(59.4% 0.201 294.8);
Tailwind
colors: {
  custom: {
    50: '#b28cef',
    500: '#8a5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce7;
$custom-light: #b28cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce7",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 259.856,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.594,
    "c": 0.2011,
    "h": 294.8
  },
  "luminance": 0.18827
}

Semantic roles & 50–950 ramp

primary
#8A5CE7
secondary
#D8E8B7
accent
#D60F94
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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