#8A5DB3#8A5DB3

#8A5DB3 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.3% C 0.136 H 306.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5DB3
RGBrgb(138, 93, 179)
HSLhsl(271, 36%, 53%)
HSVhsv(271, 48%, 70%)
CMYKcmyk(22.9%, 48%, 0%, 29.8%)
CIE-LABlab(47.61, 35.28, -38.90)
CIE-LCHlch(47.61, 52.52, 312.20°)
OKLaboklab(56.29% 0.0811 -0.1088)
OKLCHoklch(56.29% 0.136 306.7)
XYZxyz(22.5306, 16.4869, 44.6344)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DB3 #86B35D
analogous
#5F5DB3 #8A5DB3 #B35DB1
triadic
#8A5DB3 #B38A5D #5DB38A
tetradic
#8A5DB3 #B35F5D #86B35D #5DB1B3
square
#8A5DB3 #B35F5D #86B35D #5DB1B3
split-complementary
#8A5DB3 #B1B35D #5DB35F
monochromatic
#4C3066 #6B438F #8A5DB3 #A887C7 #C6B0DA

Accessibility & contrast

On white

4.89
#8A5DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A5DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DB3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DB3#FFFFFF#000000##FFFFFF
##8A5DB31.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466FB6
Deuteranopia (green-blind)
#5271B1
Tritanopia (blue-blind)
#846C7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5db3;
/* rgb */ color: rgb(138, 93, 179);
/* oklch */ color: oklch(56.3% 0.136 306.7);
Tailwind
colors: {
  custom: {
    50: '#ae8cca',
    500: '#8a5db3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5db3;
$custom-light: #ae8cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5db3",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 271.395,
    "s": 36.134,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.13567,
    "h": 306.7
  },
  "luminance": 0.16487
}

Semantic roles & 50–950 ramp

primary
#8A5DB3
secondary
#B5C8A3
accent
#CC5C91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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