#8A5BD9#8A5BD9

#8A5BD9 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.3% C 0.186 H 297.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5BD9
RGBrgb(138, 91, 217)
HSLhsl(262, 62%, 60%)
HSVhsv(262, 58%, 85%)
CMYKcmyk(36.4%, 58.1%, 0%, 14.9%)
CIE-LABlab(49.37, 45.88, -57.98)
CIE-LCHlch(49.37, 73.94, 308.36°)
OKLaboklab(58.29% 0.0858 -0.1646)
OKLCHoklch(58.29% 0.186 297.5)
XYZxyz(26.7435, 17.8948, 67.6772)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BD9 #AAD95B
analogous
#5B6BD9 #8A5BD9 #C95BD9
triadic
#8A5BD9 #D98A5B #5BD98A
tetradic
#8A5BD9 #D95B6B #AAD95B #5BD9C9
square
#8A5BD9 #D95B6B #AAD95B #5BD9C9
split-complementary
#8A5BD9 #D9C95B #6BD95B
monochromatic
#4E2397 #682EC8 #8A5BD9 #AD8DE5 #D1BEF0

Accessibility & contrast

On white

4.59
#8A5BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8A5BD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BD9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BD9#FFFFFF#000000##FFFFFF
##8A5BD91.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1376DD
Deuteranopia (green-blind)
#2C74D6
Tritanopia (blue-blind)
#787691
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5bd9;
/* rgb */ color: rgb(138, 91, 217);
/* oklch */ color: oklch(58.3% 0.186 297.5);
Tailwind
colors: {
  custom: {
    50: '#b18be5',
    500: '#8a5bd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bd9;
$custom-light: #b18be5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bd9",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 217
  },
  "hsl": {
    "h": 262.381,
    "s": 62.376,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58295,
    "c": 0.18564,
    "h": 297.5
  },
  "luminance": 0.17895
}

Semantic roles & 50–950 ramp

primary
#8A5BD9
secondary
#CEE0B0
accent
#CA1B89
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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