#8A6DCC#8A6DCC

#8A6DCC is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.5% C 0.142 H 295.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A6DCC
RGBrgb(138, 109, 204)
HSLhsl(258, 48%, 61%)
HSVhsv(258, 47%, 80%)
CMYKcmyk(32.4%, 46.6%, 0%, 20%)
CIE-LABlab(52.62, 32.29, -45.38)
CIE-LCHlch(52.62, 55.69, 305.43°)
OKLaboklab(60.46% 0.0621 -0.1277)
OKLCHoklch(60.46% 0.142 295.9)
XYZxyz(26.8462, 20.6998, 59.6961)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DCC #AFCC6D
analogous
#6D80CC #8A6DCC #BA6DCC
triadic
#8A6DCC #CC8A6D #6DCC8A
tetradic
#8A6DCC #CC6D80 #AFCC6D #6DCCBA
square
#8A6DCC #CC6D80 #AFCC6D #6DCCBA
split-complementary
#8A6DCC #CCBA6D #80CC6D
monochromatic
#4D318D #6641BB #8A6DCC #AE9ADC #D3C8EC

Accessibility & contrast

On white

4.09
#8A6DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A6DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DCC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DCC#FFFFFF#000000##000000
##8A6DCC1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7ECF
Deuteranopia (green-blind)
#537CCA
Tritanopia (blue-blind)
#7B7F93
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6dcc;
/* rgb */ color: rgb(138, 109, 204);
/* oklch */ color: oklch(60.5% 0.142 295.9);
Tailwind
colors: {
  custom: {
    50: '#af97dc',
    500: '#8a6dcc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dcc;
$custom-light: #af97dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dcc",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 204
  },
  "hsl": {
    "h": 258.316,
    "s": 48.223,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60464,
    "c": 0.142,
    "h": 295.9
  },
  "luminance": 0.207
}

Semantic roles & 50–950 ramp

primary
#8A6DCC
secondary
#D1DCB9
accent
#BC2A8F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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