#8A5DD4#8A5DD4

#8A5DD4 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.3% C 0.177 H 298.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8A5DD4
RGBrgb(138, 93, 212)
HSLhsl(263, 58%, 60%)
HSVhsv(263, 56%, 83%)
CMYKcmyk(34.9%, 56.1%, 0%, 16.9%)
CIE-LABlab(49.48, 43.49, -54.96)
CIE-LCHlch(49.48, 70.08, 308.36°)
OKLaboklab(58.28% 0.0834 -0.1557)
OKLCHoklch(58.28% 0.177 298.2)
XYZxyz(26.2763, 17.9851, 64.3617)
Luminance0.1799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DD4 #A7D45D
analogous
#5D6CD4 #8A5DD4 #C65DD4
triadic
#8A5DD4 #D48A5D #5DD48A
tetradic
#8A5DD4 #D45D6C #A7D45D #5DD4C6
square
#8A5DD4 #D45D6C #A7D45D #5DD4C6
split-complementary
#8A5DD4 #D4C65D #6CD45D
monochromatic
#4E2690 #6933C1 #8A5DD4 #AD8DE1 #D0BEEE

Accessibility & contrast

On white

4.57
#8A5DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8A5DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DD4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DD4#FFFFFF#000000##000000
##8A5DD41.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2676D8
Deuteranopia (green-blind)
#3674D1
Tritanopia (blue-blind)
#7A7590
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5dd4;
/* rgb */ color: rgb(138, 93, 212);
/* oklch */ color: oklch(58.3% 0.177 298.2);
Tailwind
colors: {
  custom: {
    50: '#b08ce2',
    500: '#8a5dd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dd4;
$custom-light: #b08ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dd4",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 262.689,
    "s": 58.049,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58276,
    "c": 0.17666,
    "h": 298.2
  },
  "luminance": 0.17985
}

Semantic roles & 50–950 ramp

primary
#8A5DD4
secondary
#CCDDAF
accent
#E147A7
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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