#8A6ED2#8A6ED2

#8A6ED2 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.0% C 0.148 H 294.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A6ED2
RGBrgb(138, 110, 210)
HSLhsl(257, 53%, 63%)
HSVhsv(257, 48%, 82%)
CMYKcmyk(34.3%, 47.6%, 0%, 17.6%)
CIE-LABlab(53.18, 33.28, -47.91)
CIE-LCHlch(53.18, 58.33, 304.78°)
OKLaboklab(60.99% 0.0615 -0.1351)
OKLCHoklch(60.99% 0.148 294.5)
XYZxyz(27.6871, 21.2078, 63.5951)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ED2 #B6D26E
analogous
#6E84D2 #8A6ED2 #BC6ED2
triadic
#8A6ED2 #D28A6E #6ED28A
tetradic
#8A6ED2 #D26E84 #B6D26E #6ED2BC
square
#8A6ED2 #D26E84 #B6D26E #6ED2BC
split-complementary
#8A6ED2 #D2BC6E #84D26E
monochromatic
#4C2F97 #643FC4 #8A6ED2 #B09DE0 #D5CBEF

Accessibility & contrast

On white

4.01
#8A6ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8A6ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ED2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ED2#FFFFFF#000000##000000
##8A6ED21.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B80D6
Deuteranopia (green-blind)
#507DD0
Tritanopia (blue-blind)
#798196
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6ed2;
/* rgb */ color: rgb(138, 110, 210);
/* oklch */ color: oklch(61.0% 0.148 294.5);
Tailwind
colors: {
  custom: {
    50: '#af98e0',
    500: '#8a6ed2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ed2;
$custom-light: #af98e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ed2",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 210
  },
  "hsl": {
    "h": 256.8,
    "s": 52.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60986,
    "c": 0.14843,
    "h": 294.5
  },
  "luminance": 0.21208
}

Semantic roles & 50–950 ramp

primary
#8A6ED2
secondary
#D6E0BC
accent
#C02595
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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