#8A6DC4#8A6DC4

#8A6DC4 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.0% C 0.131 H 297.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A6DC4
RGBrgb(138, 109, 196)
HSLhsl(260, 42%, 60%)
HSVhsv(260, 44%, 77%)
CMYKcmyk(29.6%, 44.4%, 0%, 23.1%)
CIE-LABlab(52.20, 30.22, -41.47)
CIE-LCHlch(52.20, 51.31, 306.09°)
OKLaboklab(60.02% 0.061 -0.1163)
OKLCHoklch(60.02% 0.131 297.7)
XYZxyz(25.9113, 20.3258, 54.7720)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DC4 #A7C46D
analogous
#6D7CC4 #8A6DC4 #B66DC4
triadic
#8A6DC4 #C48A6D #6DC48A
tetradic
#8A6DC4 #C46D7C #A7C46D #6DC4B6
square
#8A6DC4 #C46D7C #A7C46D #6DC4B6
split-complementary
#8A6DC4 #C4B66D #7CC46D
monochromatic
#4E3582 #6946AE #8A6DC4 #AD99D6 #D0C4E7

Accessibility & contrast

On white

4.15
#8A6DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A6DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DC4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DC4#FFFFFF#000000##000000
##8A6DC41.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#537DC7
Deuteranopia (green-blind)
#597CC2
Tritanopia (blue-blind)
#7E7D8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6dc4;
/* rgb */ color: rgb(138, 109, 196);
/* oklch */ color: oklch(60.0% 0.131 297.7);
Tailwind
colors: {
  custom: {
    50: '#ae97d6',
    500: '#8a6dc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dc4;
$custom-light: #ae97d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dc4",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 260,
    "s": 42.439,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60016,
    "c": 0.13131,
    "h": 297.7
  },
  "luminance": 0.20326
}

Semantic roles & 50–950 ramp

primary
#8A6DC4
secondary
#CCD7B6
accent
#D256A9
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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