#8A5BD1#8A5BD1

#8A5BD1 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.176 H 299.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD1
RGBrgb(138, 91, 209)
HSLhsl(264, 56%, 59%)
HSVhsv(264, 56%, 82%)
CMYKcmyk(34%, 56.5%, 0%, 18%)
CIE-LABlab(48.87, 43.83, -54.22)
CIE-LCHlch(48.87, 69.72, 308.95°)
OKLaboklab(57.77% 0.0858 -0.1536)
OKLCHoklch(57.77% 0.176 299.2)
XYZxyz(25.7281, 17.4887, 62.3294)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD1 #A2D15B
analogous
#5B67D1 #8A5BD1 #C55BD1
triadic
#8A5BD1 #D18A5B #5BD18A
tetradic
#8A5BD1 #D15B67 #A2D15B #5BD1C5
square
#8A5BD1 #D15B67 #A2D15B #5BD1C5
split-complementary
#8A5BD1 #D1C55B #67D15B
monochromatic
#4F278B #6A34BA #8A5BD1 #AC8BDE #CEBBEC

Accessibility & contrast

On white

4.67
#8A5BD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A5BD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD1#FFFFFF#000000##FFFFFF
##8A5BD11.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2574D5
Deuteranopia (green-blind)
#3773CE
Tritanopia (blue-blind)
#7B738D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5bd1;
/* rgb */ color: rgb(138, 91, 209);
/* oklch */ color: oklch(57.8% 0.176 299.2);
Tailwind
colors: {
  custom: {
    50: '#b08be0',
    500: '#8a5bd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd1;
$custom-light: #b08be0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd1",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 209
  },
  "hsl": {
    "h": 263.898,
    "s": 56.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.17592,
    "h": 299.2
  },
  "luminance": 0.17489
}

Semantic roles & 50–950 ramp

primary
#8A5BD1
secondary
#C9DBAD
accent
#DF48A3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5BD1

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

Preview Lab → · Contrast checker → · Palette generator →

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