#8A6DCE#8A6DCE

#8A6DCE is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.6% C 0.145 H 295.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A6DCE
RGBrgb(138, 109, 206)
HSLhsl(258, 50%, 62%)
HSVhsv(258, 47%, 81%)
CMYKcmyk(33%, 47.1%, 0%, 19.2%)
CIE-LABlab(52.73, 32.81, -46.35)
CIE-LCHlch(52.73, 56.79, 305.29°)
OKLaboklab(60.58% 0.0624 -0.1305)
OKLCHoklch(60.58% 0.145 295.5)
XYZxyz(27.0877, 20.7964, 60.9675)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DCE #B1CE6D
analogous
#6D81CE #8A6DCE #BB6DCE
triadic
#8A6DCE #CE8A6D #6DCE8A
tetradic
#8A6DCE #CE6D81 #B1CE6D #6DCEBB
square
#8A6DCE #CE6D81 #B1CE6D #6DCEBB
split-complementary
#8A6DCE #CEBB6D #81CE6D
monochromatic
#4D3090 #6640BE #8A6DCE #AF9BDD #D3C9ED

Accessibility & contrast

On white

4.07
#8A6DCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A6DCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DCE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DCE#FFFFFF#000000##000000
##8A6DCE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7FD1
Deuteranopia (green-blind)
#527CCC
Tritanopia (blue-blind)
#7B7F94
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6dce;
/* rgb */ color: rgb(138, 109, 206);
/* oklch */ color: oklch(60.6% 0.145 295.5);
Tailwind
colors: {
  custom: {
    50: '#af97dd',
    500: '#8a6dce',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dce;
$custom-light: #af97dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dce",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 206
  },
  "hsl": {
    "h": 257.938,
    "s": 49.744,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60578,
    "c": 0.14466,
    "h": 295.5
  },
  "luminance": 0.20797
}

Semantic roles & 50–950 ramp

primary
#8A6DCE
secondary
#D3DDB9
accent
#BD2891
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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