#8A6BD4#8A6BD4

#8A6BD4 is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.6% C 0.156 H 294.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A6BD4
RGBrgb(138, 107, 212)
HSLhsl(258, 55%, 63%)
HSVhsv(258, 50%, 83%)
CMYKcmyk(34.9%, 49.5%, 0%, 16.9%)
CIE-LABlab(52.59, 35.54, -49.98)
CIE-LCHlch(52.59, 61.33, 305.42°)
OKLaboklab(60.58% 0.0657 -0.1411)
OKLCHoklch(60.58% 0.156 294.9)
XYZxyz(27.6196, 20.6716, 64.8095)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BD4 #B5D46B
analogous
#6B81D4 #8A6BD4 #BE6BD4
triadic
#8A6BD4 #D48A6B #6BD48A
tetradic
#8A6BD4 #D46B81 #B5D46B #6BD4BE
square
#8A6BD4 #D46B81 #B5D46B #6BD4BE
split-complementary
#8A6BD4 #D4BE6B #81D46B
monochromatic
#4C2C98 #653CC6 #8A6BD4 #AF9AE2 #D5CAF0

Accessibility & contrast

On white

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

On black

5.13
#8A6BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BD4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BD4#FFFFFF#000000##000000
##8A6BD41.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#447ED8
Deuteranopia (green-blind)
#4B7CD2
Tritanopia (blue-blind)
#798096
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6bd4;
/* rgb */ color: rgb(138, 107, 212);
/* oklch */ color: oklch(60.6% 0.156 294.9);
Tailwind
colors: {
  custom: {
    50: '#af96e2',
    500: '#8a6bd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bd4;
$custom-light: #af96e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bd4",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 212
  },
  "hsl": {
    "h": 257.714,
    "s": 54.974,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60582,
    "c": 0.15566,
    "h": 294.9
  },
  "luminance": 0.20672
}

Semantic roles & 50–950 ramp

primary
#8A6BD4
secondary
#D5E0BA
accent
#C22393
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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