#8A5DD2#8A5DD2

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

Color values

HEX#8A5DD2
RGBrgb(138, 93, 210)
HSLhsl(263, 57%, 59%)
HSVhsv(263, 56%, 82%)
CMYKcmyk(34.3%, 55.7%, 0%, 17.6%)
CIE-LABlab(49.36, 42.97, -54.01)
CIE-LCHlch(49.36, 69.02, 308.51°)
OKLaboklab(58.15% 0.0834 -0.1529)
OKLCHoklch(58.15% 0.174 298.6)
XYZxyz(26.0256, 17.8848, 63.0412)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DD2 #A5D25D
analogous
#5D6BD2 #8A5DD2 #C55DD2
triadic
#8A5DD2 #D28A5D #5DD28A
tetradic
#8A5DD2 #D25D6B #A5D25D #5DD2C5
square
#8A5DD2 #D25D6B #A5D25D #5DD2C5
split-complementary
#8A5DD2 #D2C55D #6BD25D
monochromatic
#4F278D #6935BD #8A5DD2 #AD8DDF #CFBDED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5DD2#FFFFFF#000000##FFFFFF
##8A5DD21.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)
#2975D6
Deuteranopia (green-blind)
#3974CF
Tritanopia (blue-blind)
#7A758F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a5dd2;
/* rgb */ color: rgb(138, 93, 210);
/* oklch */ color: oklch(58.1% 0.174 298.6);
Tailwind
colors: {
  custom: {
    50: '#b08ce0',
    500: '#8a5dd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dd2;
$custom-light: #b08ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dd2",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 210
  },
  "hsl": {
    "h": 263.077,
    "s": 56.522,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58147,
    "c": 0.17419,
    "h": 298.6
  },
  "luminance": 0.17885
}

Semantic roles & 50–950 ramp

primary
#8A5DD2
secondary
#CBDCAF
accent
#E048A5
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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