#8A5DB2#8A5DB2

#8A5DB2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.134 H 307.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A5DB2
RGBrgb(138, 93, 178)
HSLhsl(272, 36%, 53%)
HSVhsv(272, 48%, 70%)
CMYKcmyk(22.5%, 47.8%, 0%, 30.2%)
CIE-LABlab(47.55, 35.04, -38.40)
CIE-LCHlch(47.55, 51.98, 312.38°)
OKLaboklab(56.23% 0.0809 -0.1073)
OKLCHoklch(56.23% 0.134 307)
XYZxyz(22.4299, 16.4465, 44.1037)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DB2 #85B25D
analogous
#5F5DB2 #8A5DB2 #B25DAF
triadic
#8A5DB2 #B28A5D #5DB28A
tetradic
#8A5DB2 #B25F5D #85B25D #5DAFB2
square
#8A5DB2 #B25F5D #85B25D #5DAFB2
split-complementary
#8A5DB2 #AFB25D #5DB25F
monochromatic
#4C3065 #6B448E #8A5DB2 #A886C6 #C6B0D9

Accessibility & contrast

On white

4.90
#8A5DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A5DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DB2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DB2#FFFFFF#000000##FFFFFF
##8A5DB21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#5371B0
Tritanopia (blue-blind)
#846B7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5db2;
/* rgb */ color: rgb(138, 93, 178);
/* oklch */ color: oklch(56.2% 0.134 307.0);
Tailwind
colors: {
  custom: {
    50: '#ae8cc9',
    500: '#8a5db2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5db2;
$custom-light: #ae8cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5db2",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 271.765,
    "s": 35.565,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56229,
    "c": 0.13443,
    "h": 307
  },
  "luminance": 0.16446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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