#8A6DD3#8A6DD3

#8A6DD3 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.9% C 0.151 H 294.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A6DD3
RGBrgb(138, 109, 211)
HSLhsl(257, 54%, 63%)
HSVhsv(257, 48%, 83%)
CMYKcmyk(34.6%, 48.3%, 0%, 17.3%)
CIE-LABlab(53.00, 34.12, -48.76)
CIE-LCHlch(53.00, 59.51, 304.98°)
OKLaboklab(60.87% 0.063 -0.1376)
OKLCHoklch(60.87% 0.151 294.6)
XYZxyz(27.7047, 21.0432, 64.2175)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DD3 #B6D36D
analogous
#6D83D3 #8A6DD3 #BD6DD3
triadic
#8A6DD3 #D38A6D #6DD38A
tetradic
#8A6DD3 #D36D83 #B6D36D #6DD3BD
square
#8A6DD3 #D36D83 #B6D36D #6DD3BD
split-complementary
#8A6DD3 #D3BD6D #83D36D
monochromatic
#4C2E98 #643EC5 #8A6DD3 #B09CE1 #D5CBEF

Accessibility & contrast

On white

4.03
#8A6DD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A6DD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DD3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DD3#FFFFFF#000000##000000
##8A6DD31.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#497FD7
Deuteranopia (green-blind)
#4E7DD1
Tritanopia (blue-blind)
#798196
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6dd3;
/* rgb */ color: rgb(138, 109, 211);
/* oklch */ color: oklch(60.9% 0.151 294.6);
Tailwind
colors: {
  custom: {
    50: '#af97e1',
    500: '#8a6dd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dd3;
$custom-light: #af97e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dd3",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 211
  },
  "hsl": {
    "h": 257.059,
    "s": 53.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60869,
    "c": 0.15129,
    "h": 294.6
  },
  "luminance": 0.21044
}

Semantic roles & 50–950 ramp

primary
#8A6DD3
secondary
#D6E0BB
accent
#C12495
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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