#8A5DBA#8A5DBA

#8A5DBA is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.7% C 0.144 H 304.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5DBA
RGBrgb(138, 93, 186)
HSLhsl(269, 40%, 55%)
HSVhsv(269, 50%, 73%)
CMYKcmyk(25.8%, 50%, 0%, 27.1%)
CIE-LABlab(47.98, 36.96, -42.39)
CIE-LCHlch(47.98, 56.24, 311.09°)
OKLaboklab(56.68% 0.0819 -0.1189)
OKLCHoklch(56.68% 0.144 304.6)
XYZxyz(23.2566, 16.7772, 48.4580)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DBA #8DBA5D
analogous
#5D5FBA #8A5DBA #B95DBA
triadic
#8A5DBA #BA8A5D #5DBA8A
tetradic
#8A5DBA #BA5D5F #8DBA5D #5DBAB9
square
#8A5DBA #BA5D5F #8DBA5D #5DBAB9
split-complementary
#8A5DBA #BAB95D #5FBA5D
monochromatic
#4D2F6E #6B4199 #8A5DBA #A988CC #C8B3DF

Accessibility & contrast

On white

4.82
#8A5DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A5DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DBA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DBA#FFFFFF#000000##FFFFFF
##8A5DBA1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4171BD
Deuteranopia (green-blind)
#4E72B8
Tritanopia (blue-blind)
#826E83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5dba;
/* rgb */ color: rgb(138, 93, 186);
/* oklch */ color: oklch(56.7% 0.144 304.6);
Tailwind
colors: {
  custom: {
    50: '#ae8ccf',
    500: '#8a5dba',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dba;
$custom-light: #ae8ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dba",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 186
  },
  "hsl": {
    "h": 269.032,
    "s": 40.26,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56682,
    "c": 0.14441,
    "h": 304.6
  },
  "luminance": 0.16777
}

Semantic roles & 50–950 ramp

primary
#8A5DBA
secondary
#BACDA6
accent
#D05896
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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