#8A6CDA#8A6CDA

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

Color values

HEX#8A6CDA
RGBrgb(138, 108, 218)
HSLhsl(256, 60%, 64%)
HSVhsv(256, 50%, 85%)
CMYKcmyk(36.7%, 50.5%, 0%, 14.5%)
CIE-LABlab(53.16, 36.55, -52.47)
CIE-LCHlch(53.16, 63.95, 304.86°)
OKLaboklab(61.11% 0.0649 -0.1484)
OKLCHoklch(61.11% 0.162 293.6)
XYZxyz(28.4954, 21.1897, 68.9048)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CDA #BCDA6C
analogous
#6C85DA #8A6CDA #C16CDA
triadic
#8A6CDA #DA8A6C #6CDA8A
tetradic
#8A6CDA #DA6C85 #BCDA6C #6CDAC1
square
#8A6CDA #DA6C85 #BCDA6C #6CDAC1
split-complementary
#8A6CDA #DAC16C #85DA6C
monochromatic
#4A29A3 #633BCE #8A6CDA #B19DE6 #D8CEF3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6CDA#FFFFFF#000000##000000
##8A6CDA1.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)
#4180DE
Deuteranopia (green-blind)
#477DD7
Tritanopia (blue-blind)
#768299
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6cda;
/* rgb */ color: rgb(138, 108, 218);
/* oklch */ color: oklch(61.1% 0.162 293.6);
Tailwind
colors: {
  custom: {
    50: '#b097e6',
    500: '#8a6cda',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cda;
$custom-light: #b097e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cda",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 218
  },
  "hsl": {
    "h": 256.364,
    "s": 59.783,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.162,
    "h": 293.6
  },
  "luminance": 0.2119
}

Semantic roles & 50–950 ramp

primary
#8A6CDA
secondary
#DAE4BE
accent
#C71E99
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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