#8A6BD2#8A6BD2

#8A6BD2 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.5% C 0.153 H 295.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A6BD2
RGBrgb(138, 107, 210)
HSLhsl(258, 53%, 62%)
HSVhsv(258, 49%, 82%)
CMYKcmyk(34.3%, 49%, 0%, 17.6%)
CIE-LABlab(52.48, 35.01, -49.02)
CIE-LCHlch(52.48, 60.24, 305.54°)
OKLaboklab(60.46% 0.0655 -0.1383)
OKLCHoklch(60.46% 0.153 295.3)
XYZxyz(27.3688, 20.5713, 63.4890)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BD2 #B3D26B
analogous
#6B80D2 #8A6BD2 #BD6BD2
triadic
#8A6BD2 #D28A6B #6BD28A
tetradic
#8A6BD2 #D26B80 #B3D26B #6BD2BD
square
#8A6BD2 #D26B80 #B3D26B #6BD2BD
split-complementary
#8A6BD2 #D2BD6B #80D26B
monochromatic
#4D2D95 #653CC4 #8A6BD2 #AF9AE0 #D4C9EF

Accessibility & contrast

On white

4.11
#8A6BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A6BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BD2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BD2#FFFFFF#000000##000000
##8A6BD21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ED6
Deuteranopia (green-blind)
#4C7CD0
Tritanopia (blue-blind)
#797F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6bd2;
/* rgb */ color: rgb(138, 107, 210);
/* oklch */ color: oklch(60.5% 0.153 295.3);
Tailwind
colors: {
  custom: {
    50: '#af96e0',
    500: '#8a6bd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bd2;
$custom-light: #af96e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bd2",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 210
  },
  "hsl": {
    "h": 258.058,
    "s": 53.368,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60463,
    "c": 0.15304,
    "h": 295.3
  },
  "luminance": 0.20572
}

Semantic roles & 50–950 ramp

primary
#8A6BD2
secondary
#D4DFB9
accent
#C12592
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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