#8A6BD0#8A6BD0

#8A6BD0 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.3% C 0.150 H 295.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A6BD0
RGBrgb(138, 107, 208)
HSLhsl(258, 52%, 62%)
HSVhsv(258, 49%, 82%)
CMYKcmyk(33.7%, 48.6%, 0%, 18.4%)
CIE-LABlab(52.37, 34.49, -48.06)
CIE-LCHlch(52.37, 59.16, 305.66°)
OKLaboklab(60.35% 0.0653 -0.1355)
OKLCHoklch(60.35% 0.15 295.7)
XYZxyz(27.1212, 20.4723, 62.1849)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BD0 #B1D06B
analogous
#6B7FD0 #8A6BD0 #BD6BD0
triadic
#8A6BD0 #D08A6B #6BD08A
tetradic
#8A6BD0 #D06B7F #B1D06B #6BD0BD
square
#8A6BD0 #D06B7F #B1D06B #6BD0BD
split-complementary
#8A6BD0 #D0BD6B #7FD06B
monochromatic
#4D2E92 #663DC1 #8A6BD0 #AF99DF #D3C8EE

Accessibility & contrast

On white

4.12
#8A6BD0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A6BD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BD0
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BD0#FFFFFF#000000##000000
##8A6BD01.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#487ED4
Deuteranopia (green-blind)
#4E7CCE
Tritanopia (blue-blind)
#7A7E94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6bd0;
/* rgb */ color: rgb(138, 107, 208);
/* oklch */ color: oklch(60.3% 0.150 295.7);
Tailwind
colors: {
  custom: {
    50: '#af96df',
    500: '#8a6bd0',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bd0;
$custom-light: #af96df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bd0",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 208
  },
  "hsl": {
    "h": 258.416,
    "s": 51.795,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60345,
    "c": 0.15041,
    "h": 295.7
  },
  "luminance": 0.20473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A6BD0

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

Preview Lab → · Contrast checker → · Palette generator →

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