#8A6DD2#8A6DD2

#8A6DD2 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.8% C 0.150 H 294.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A6DD2
RGBrgb(138, 109, 210)
HSLhsl(257, 53%, 63%)
HSVhsv(257, 48%, 82%)
CMYKcmyk(34.3%, 48.1%, 0%, 17.6%)
CIE-LABlab(52.94, 33.86, -48.28)
CIE-LCHlch(52.94, 58.97, 305.04°)
OKLaboklab(60.81% 0.0628 -0.1362)
OKLCHoklch(60.81% 0.15 294.8)
XYZxyz(27.5798, 20.9932, 63.5593)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DD2 #B5D26D
analogous
#6D82D2 #8A6DD2 #BD6DD2
triadic
#8A6DD2 #D28A6D #6DD28A
tetradic
#8A6DD2 #D26D82 #B5D26D #6DD2BD
square
#8A6DD2 #D26D82 #B5D26D #6DD2BD
split-complementary
#8A6DD2 #D2BD6D #82D26D
monochromatic
#4C2E96 #653EC4 #8A6DD2 #AF9CE0 #D5CBEF

Accessibility & contrast

On white

4.04
#8A6DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A6DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DD2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DD2#FFFFFF#000000##000000
##8A6DD21.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7FD6
Deuteranopia (green-blind)
#4F7DD0
Tritanopia (blue-blind)
#798096
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6dd2;
/* rgb */ color: rgb(138, 109, 210);
/* oklch */ color: oklch(60.8% 0.150 294.8);
Tailwind
colors: {
  custom: {
    50: '#af97e0',
    500: '#8a6dd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dd2;
$custom-light: #af97e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dd2",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 210
  },
  "hsl": {
    "h": 257.228,
    "s": 52.88,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60811,
    "c": 0.14997,
    "h": 294.8
  },
  "luminance": 0.20994
}

Semantic roles & 50–950 ramp

primary
#8A6DD2
secondary
#D5E0BB
accent
#C02594
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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