#8A6FD6#8A6FD6

#8A6FD6 is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.4% C 0.152 H 293.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A6FD6
RGBrgb(138, 111, 214)
HSLhsl(256, 56%, 64%)
HSVhsv(256, 48%, 84%)
CMYKcmyk(35.5%, 48.1%, 0%, 16.1%)
CIE-LABlab(53.63, 33.75, -49.46)
CIE-LCHlch(53.63, 59.88, 304.31°)
OKLaboklab(61.4% 0.0607 -0.1396)
OKLCHoklch(61.4% 0.152 293.5)
XYZxyz(28.3001, 21.6266, 66.2886)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FD6 #BBD66F
analogous
#6F87D6 #8A6FD6 #BD6FD6
triadic
#8A6FD6 #D68A6F #6FD68A
tetradic
#8A6FD6 #D66F87 #BBD66F #6FD6BD
square
#8A6FD6 #D66F87 #BBD66F #6FD6BD
split-complementary
#8A6FD6 #D6BD6F #87D66F
monochromatic
#4A2D9E #633FC8 #8A6FD6 #B19FE4 #D7CEF1

Accessibility & contrast

On white

3.94
#8A6FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8A6FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FD6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FD6#FFFFFF#000000##000000
##8A6FD61.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A81DA
Deuteranopia (green-blind)
#4E7ED4
Tritanopia (blue-blind)
#788398
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6fd6;
/* rgb */ color: rgb(138, 111, 214);
/* oklch */ color: oklch(61.4% 0.152 293.5);
Tailwind
colors: {
  custom: {
    50: '#af99e3',
    500: '#8a6fd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fd6;
$custom-light: #af99e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fd6",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 214
  },
  "hsl": {
    "h": 255.728,
    "s": 55.676,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61396,
    "c": 0.15222,
    "h": 293.5
  },
  "luminance": 0.21627
}

Semantic roles & 50–950 ramp

primary
#8A6FD6
secondary
#D9E3BE
accent
#C32299
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A6FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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