#8A6FD2#8A6FD2

#8A6FD2 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.2% C 0.147 H 294.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A6FD2
RGBrgb(138, 111, 210)
HSLhsl(256, 52%, 63%)
HSVhsv(256, 47%, 82%)
CMYKcmyk(34.3%, 47.1%, 0%, 17.6%)
CIE-LABlab(53.41, 32.69, -47.54)
CIE-LCHlch(53.41, 57.69, 304.52°)
OKLaboklab(61.16% 0.0602 -0.134)
OKLCHoklch(61.16% 0.147 294.2)
XYZxyz(27.7956, 21.4248, 63.6312)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FD2 #B7D26F
analogous
#6F85D2 #8A6FD2 #BC6FD2
triadic
#8A6FD2 #D28A6F #6FD28A
tetradic
#8A6FD2 #D26F85 #B7D26F #6FD2BC
square
#8A6FD2 #D26F85 #B7D26F #6FD2BC
split-complementary
#8A6FD2 #D2BC6F #85D26F
monochromatic
#4C2F97 #6440C3 #8A6FD2 #B09EE1 #D6CCEF

Accessibility & contrast

On white

3.97
#8A6FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8A6FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FD2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FD2#FFFFFF#000000##000000
##8A6FD21.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D81D6
Deuteranopia (green-blind)
#517ED0
Tritanopia (blue-blind)
#798296
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6fd2;
/* rgb */ color: rgb(138, 111, 210);
/* oklch */ color: oklch(61.2% 0.147 294.2);
Tailwind
colors: {
  custom: {
    50: '#af99e0',
    500: '#8a6fd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fd2;
$custom-light: #af99e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fd2",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 210
  },
  "hsl": {
    "h": 256.364,
    "s": 52.381,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.1469,
    "h": 294.2
  },
  "luminance": 0.21425
}

Semantic roles & 50–950 ramp

primary
#8A6FD2
secondary
#D6E0BD
accent
#C02696
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A6FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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