#8A6DD4#8A6DD4

#8A6DD4 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.9% C 0.153 H 294.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A6DD4
RGBrgb(138, 109, 212)
HSLhsl(257, 54%, 63%)
HSVhsv(257, 49%, 83%)
CMYKcmyk(34.9%, 48.6%, 0%, 16.9%)
CIE-LABlab(53.05, 34.38, -49.24)
CIE-LCHlch(53.05, 60.06, 304.92°)
OKLaboklab(60.93% 0.0631 -0.139)
OKLCHoklch(60.93% 0.153 294.4)
XYZxyz(27.8305, 21.0935, 64.8798)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DD4 #B7D46D
analogous
#6D83D4 #8A6DD4 #BD6DD4
triadic
#8A6DD4 #D48A6D #6DD48A
tetradic
#8A6DD4 #D46D83 #B7D46D #6DD4BD
square
#8A6DD4 #D46D83 #B7D46D #6DD4BD
split-complementary
#8A6DD4 #D4BD6D #83D46D
monochromatic
#4C2D99 #643EC6 #8A6DD4 #B09CE2 #D6CCF0

Accessibility & contrast

On white

4.02
#8A6DD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8A6DD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DD4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DD4#FFFFFF#000000##000000
##8A6DD41.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4880D8
Deuteranopia (green-blind)
#4D7DD2
Tritanopia (blue-blind)
#798196
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6dd4;
/* rgb */ color: rgb(138, 109, 212);
/* oklch */ color: oklch(60.9% 0.153 294.4);
Tailwind
colors: {
  custom: {
    50: '#af97e2',
    500: '#8a6dd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dd4;
$custom-light: #af97e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dd4",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 212
  },
  "hsl": {
    "h": 256.893,
    "s": 54.497,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60928,
    "c": 0.15262,
    "h": 294.4
  },
  "luminance": 0.21094
}

Semantic roles & 50–950 ramp

primary
#8A6DD4
secondary
#D6E1BC
accent
#C22495
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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