#8A5BD7#8A5BD7

#8A5BD7 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.2% C 0.183 H 297.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD7
RGBrgb(138, 91, 215)
HSLhsl(263, 61%, 60%)
HSVhsv(263, 58%, 84%)
CMYKcmyk(35.8%, 57.7%, 0%, 15.7%)
CIE-LABlab(49.24, 45.36, -57.04)
CIE-LCHlch(49.24, 72.88, 308.49°)
OKLaboklab(58.16% 0.0859 -0.1619)
OKLCHoklch(58.16% 0.183 297.9)
XYZxyz(26.4850, 17.7914, 66.3155)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD7 #A8D75B
analogous
#5B6AD7 #8A5BD7 #C85BD7
triadic
#8A5BD7 #D78A5B #5BD78A
tetradic
#8A5BD7 #D75B6A #A8D75B #5BD7C8
square
#8A5BD7 #D75B6A #A8D75B #5BD7C8
split-complementary
#8A5BD7 #D7C85B #6AD75B
monochromatic
#4E2494 #6830C5 #8A5BD7 #AD8CE3 #D0BDEF

Accessibility & contrast

On white

4.61
#8A5BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8A5BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD7#FFFFFF#000000##FFFFFF
##8A5BD71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1975DB
Deuteranopia (green-blind)
#2F74D4
Tritanopia (blue-blind)
#797590
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5bd7;
/* rgb */ color: rgb(138, 91, 215);
/* oklch */ color: oklch(58.2% 0.183 297.9);
Tailwind
colors: {
  custom: {
    50: '#b18be4',
    500: '#8a5bd7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd7;
$custom-light: #b18be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd7",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 262.742,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.18322,
    "h": 297.9
  },
  "luminance": 0.17792
}

Semantic roles & 50–950 ramp

primary
#8A5BD7
secondary
#CDDFAF
accent
#E444A7
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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