#8A6BDC#8A6BDC

#8A6BDC is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.1% C 0.166 H 293.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A6BDC
RGBrgb(138, 107, 220)
HSLhsl(256, 62%, 64%)
HSVhsv(256, 51%, 86%)
CMYKcmyk(37.3%, 51.4%, 0%, 13.7%)
CIE-LABlab(53.04, 37.66, -53.79)
CIE-LCHlch(53.04, 65.66, 305.00°)
OKLaboklab(61.07% 0.0663 -0.1523)
OKLCHoklch(61.07% 0.166 293.5)
XYZxyz(28.6538, 21.0853, 70.2565)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BDC #BDDC6B
analogous
#6B85DC #8A6BDC #C36BDC
triadic
#8A6BDC #DC8A6B #6BDC8A
tetradic
#8A6BDC #DC6B85 #BDDC6B #6BDCC3
square
#8A6BDC #DC6B85 #BDDC6B #6BDCC3
split-complementary
#8A6BDC #DCC36B #85DC6B
monochromatic
#4A27A5 #633AD0 #8A6BDC #B19CE8 #D8CEF3

Accessibility & contrast

On white

4.03
#8A6BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8A6BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BDC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BDC#FFFFFF#000000##000000
##8A6BDC1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#437DD9
Tritanopia (blue-blind)
#768299
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6bdc;
/* rgb */ color: rgb(138, 107, 220);
/* oklch */ color: oklch(61.1% 0.166 293.5);
Tailwind
colors: {
  custom: {
    50: '#b096e7',
    500: '#8a6bdc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bdc;
$custom-light: #b096e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bdc",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 220
  },
  "hsl": {
    "h": 256.46,
    "s": 61.749,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61068,
    "c": 0.16609,
    "h": 293.5
  },
  "luminance": 0.21086
}

Semantic roles & 50–950 ramp

primary
#8A6BDC
secondary
#DAE5BE
accent
#C91C9A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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