#8A6DC2#8A6DC2

#8A6DC2 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 59.9% C 0.129 H 298.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A6DC2
RGBrgb(138, 109, 194)
HSLhsl(260, 41%, 59%)
HSVhsv(260, 44%, 76%)
CMYKcmyk(28.9%, 43.8%, 0%, 23.9%)
CIE-LABlab(52.10, 29.72, -40.48)
CIE-LCHlch(52.10, 50.22, 306.28°)
OKLaboklab(59.91% 0.0607 -0.1134)
OKLCHoklch(59.91% 0.129 298.2)
XYZxyz(25.6852, 20.2354, 53.5811)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DC2 #A5C26D
analogous
#6D7BC2 #8A6DC2 #B56DC2
triadic
#8A6DC2 #C28A6D #6DC28A
tetradic
#8A6DC2 #C26D7B #A5C26D #6DC2B5
square
#8A6DC2 #C26D7B #A5C26D #6DC2B5
split-complementary
#8A6DC2 #C2B56D #7BC26D
monochromatic
#4F357F #6947AB #8A6DC2 #AD98D4 #CFC3E6

Accessibility & contrast

On white

4.16
#8A6DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A6DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DC2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DC2#FFFFFF#000000##000000
##8A6DC21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#547CC5
Deuteranopia (green-blind)
#5A7BC0
Tritanopia (blue-blind)
#7F7C8E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6dc2;
/* rgb */ color: rgb(138, 109, 194);
/* oklch */ color: oklch(59.9% 0.129 298.2);
Tailwind
colors: {
  custom: {
    50: '#ae97d5',
    500: '#8a6dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dc2;
$custom-light: #ae97d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dc2",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 194
  },
  "hsl": {
    "h": 260.471,
    "s": 41.063,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59906,
    "c": 0.12863,
    "h": 298.2
  },
  "luminance": 0.20236
}

Semantic roles & 50–950 ramp

primary
#8A6DC2
secondary
#CBD6B5
accent
#D157A7
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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