#8A6ED3#8A6ED3

#8A6ED3 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.0% C 0.150 H 294.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A6ED3
RGBrgb(138, 110, 211)
HSLhsl(257, 53%, 63%)
HSVhsv(257, 48%, 83%)
CMYKcmyk(34.6%, 47.9%, 0%, 17.3%)
CIE-LABlab(53.23, 33.54, -48.39)
CIE-LCHlch(53.23, 58.88, 304.72°)
OKLaboklab(61.04% 0.0616 -0.1365)
OKLCHoklch(61.04% 0.15 294.3)
XYZxyz(27.8120, 21.2578, 64.2532)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ED3 #B7D36E
analogous
#6E84D3 #8A6ED3 #BD6ED3
triadic
#8A6ED3 #D38A6E #6ED38A
tetradic
#8A6ED3 #D36E84 #B7D36E #6ED3BD
square
#8A6ED3 #D36E84 #B7D36E #6ED3BD
split-complementary
#8A6ED3 #D3BD6E #84D36E
monochromatic
#4C2E98 #643FC5 #8A6ED3 #B09DE1 #D6CCEF

Accessibility & contrast

On white

4.00
#8A6ED3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A6ED3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ED3
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ED3#FFFFFF#000000##000000
##8A6ED31.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A80D7
Deuteranopia (green-blind)
#4F7ED1
Tritanopia (blue-blind)
#798196
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6ed3;
/* rgb */ color: rgb(138, 110, 211);
/* oklch */ color: oklch(61.0% 0.150 294.3);
Tailwind
colors: {
  custom: {
    50: '#af98e1',
    500: '#8a6ed3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ed3;
$custom-light: #af98e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ed3",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 211
  },
  "hsl": {
    "h": 256.634,
    "s": 53.439,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61044,
    "c": 0.14976,
    "h": 294.3
  },
  "luminance": 0.21258
}

Semantic roles & 50–950 ramp

primary
#8A6ED3
secondary
#D6E1BC
accent
#C12596
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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