#8A6CD3#8A6CD3

#8A6CD3 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.7% C 0.153 H 294.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A6CD3
RGBrgb(138, 108, 211)
HSLhsl(257, 54%, 63%)
HSVhsv(257, 49%, 83%)
CMYKcmyk(34.6%, 48.8%, 0%, 17.3%)
CIE-LABlab(52.76, 34.70, -49.13)
CIE-LCHlch(52.76, 60.15, 305.23°)
OKLaboklab(60.7% 0.0643 -0.1387)
OKLCHoklch(60.7% 0.153 294.9)
XYZxyz(27.5987, 20.8311, 64.1821)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CD3 #B5D36C
analogous
#6C81D3 #8A6CD3 #BE6CD3
triadic
#8A6CD3 #D38A6C #6CD38A
tetradic
#8A6CD3 #D36C81 #B5D36C #6CD3BE
square
#8A6CD3 #D36C81 #B5D36C #6CD3BE
split-complementary
#8A6CD3 #D3BE6C #81D36C
monochromatic
#4C2D97 #653DC5 #8A6CD3 #AF9BE1 #D5CAEF

Accessibility & contrast

On white

4.06
#8A6CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8A6CD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CD3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CD3#FFFFFF#000000##000000
##8A6CD31.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#477FD7
Deuteranopia (green-blind)
#4D7CD1
Tritanopia (blue-blind)
#798096
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6cd3;
/* rgb */ color: rgb(138, 108, 211);
/* oklch */ color: oklch(60.7% 0.153 294.9);
Tailwind
colors: {
  custom: {
    50: '#af96e1',
    500: '#8a6cd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cd3;
$custom-light: #af96e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cd3",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 211
  },
  "hsl": {
    "h": 257.476,
    "s": 53.927,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60695,
    "c": 0.15283,
    "h": 294.9
  },
  "luminance": 0.20832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A6CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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