#8A6FD4#8A6FD4

#8A6FD4 is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.3% C 0.150 H 293.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A6FD4
RGBrgb(138, 111, 212)
HSLhsl(256, 54%, 63%)
HSVhsv(256, 48%, 83%)
CMYKcmyk(34.9%, 47.6%, 0%, 16.9%)
CIE-LABlab(53.52, 33.22, -48.50)
CIE-LCHlch(53.52, 58.79, 304.41°)
OKLaboklab(61.28% 0.0605 -0.1368)
OKLCHoklch(61.28% 0.15 293.8)
XYZxyz(28.0463, 21.5251, 64.9517)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FD4 #B9D46F
analogous
#6F86D4 #8A6FD4 #BD6FD4
triadic
#8A6FD4 #D48A6F #6FD48A
tetradic
#8A6FD4 #D46F86 #B9D46F #6FD4BD
square
#8A6FD4 #D46F86 #B9D46F #6FD4BD
split-complementary
#8A6FD4 #D4BD6F #86D46F
monochromatic
#4B2E9A #6440C6 #8A6FD4 #B09EE2 #D7CDF0

Accessibility & contrast

On white

3.96
#8A6FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A6FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FD4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FD4#FFFFFF#000000##000000
##8A6FD41.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B81D8
Deuteranopia (green-blind)
#507ED2
Tritanopia (blue-blind)
#788397
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6fd4;
/* rgb */ color: rgb(138, 111, 212);
/* oklch */ color: oklch(61.3% 0.150 293.8);
Tailwind
colors: {
  custom: {
    50: '#af99e2',
    500: '#8a6fd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fd4;
$custom-light: #af99e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fd4",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 212
  },
  "hsl": {
    "h": 256.04,
    "s": 54.011,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61279,
    "c": 0.14956,
    "h": 293.8
  },
  "luminance": 0.21526
}

Semantic roles & 50–950 ramp

primary
#8A6FD4
secondary
#D8E1BD
accent
#C12497
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A6FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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