#8A6CD2#8A6CD2

#8A6CD2 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.6% C 0.151 H 295.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A6CD2
RGBrgb(138, 108, 210)
HSLhsl(258, 53%, 62%)
HSVhsv(258, 49%, 82%)
CMYKcmyk(34.3%, 48.6%, 0%, 17.6%)
CIE-LABlab(52.71, 34.44, -48.65)
CIE-LCHlch(52.71, 59.61, 305.29°)
OKLaboklab(60.64% 0.0642 -0.1372)
OKLCHoklch(60.64% 0.152 295.1)
XYZxyz(27.4737, 20.7811, 63.5239)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CD2 #B4D26C
analogous
#6C81D2 #8A6CD2 #BD6CD2
triadic
#8A6CD2 #D28A6C #6CD28A
tetradic
#8A6CD2 #D26C81 #B4D26C #6CD2BD
square
#8A6CD2 #D26C81 #B4D26C #6CD2BD
split-complementary
#8A6CD2 #D2BD6C #81D26C
monochromatic
#4C2E96 #653DC4 #8A6CD2 #AF9BE0 #D5CAEF

Accessibility & contrast

On white

4.07
#8A6CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A6CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CD2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CD2#FFFFFF#000000##000000
##8A6CD21.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#487FD6
Deuteranopia (green-blind)
#4E7CD0
Tritanopia (blue-blind)
#798095
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6cd2;
/* rgb */ color: rgb(138, 108, 210);
/* oklch */ color: oklch(60.6% 0.151 295.1);
Tailwind
colors: {
  custom: {
    50: '#af96e0',
    500: '#8a6cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cd2;
$custom-light: #af96e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cd2",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 257.647,
    "s": 53.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60636,
    "c": 0.1515,
    "h": 295.1
  },
  "luminance": 0.20782
}

Semantic roles & 50–950 ramp

primary
#8A6CD2
secondary
#D5E0BA
accent
#C12593
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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