#8A6CD0#8A6CD0

#8A6CD0 is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.5% C 0.149 H 295.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A6CD0
RGBrgb(138, 108, 208)
HSLhsl(258, 52%, 62%)
HSVhsv(258, 48%, 82%)
CMYKcmyk(33.7%, 48.1%, 0%, 18.4%)
CIE-LABlab(52.60, 33.91, -47.69)
CIE-LCHlch(52.60, 58.52, 305.41°)
OKLaboklab(60.52% 0.0639 -0.1344)
OKLCHoklch(60.52% 0.149 295.4)
XYZxyz(27.2261, 20.6820, 62.2199)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CD0 #B2D06C
analogous
#6C80D0 #8A6CD0 #BC6CD0
triadic
#8A6CD0 #D08A6C #6CD08A
tetradic
#8A6CD0 #D06C80 #B2D06C #6CD0BC
square
#8A6CD0 #D06C80 #B2D06C #6CD0BC
split-complementary
#8A6CD0 #D0BC6C #80D06C
monochromatic
#4D2F93 #653EC1 #8A6CD0 #AF9ADF #D4C9EE

Accessibility & contrast

On white

4.09
#8A6CD0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A6CD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CD0
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CD0#FFFFFF#000000##000000
##8A6CD01.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#497ED4
Deuteranopia (green-blind)
#4F7CCE
Tritanopia (blue-blind)
#7A7F94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6cd0;
/* rgb */ color: rgb(138, 108, 208);
/* oklch */ color: oklch(60.5% 0.149 295.4);
Tailwind
colors: {
  custom: {
    50: '#af96df',
    500: '#8a6cd0',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cd0;
$custom-light: #af96df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cd0",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 208
  },
  "hsl": {
    "h": 258,
    "s": 51.546,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60519,
    "c": 0.14887,
    "h": 295.4
  },
  "luminance": 0.20682
}

Semantic roles & 50–950 ramp

primary
#8A6CD0
secondary
#D3DEB9
accent
#BF2791
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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