#8A6BC1#8A6BC1

#8A6BC1 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.5% C 0.131 H 299.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A6BC1
RGBrgb(138, 107, 193)
HSLhsl(262, 41%, 59%)
HSVhsv(262, 45%, 76%)
CMYKcmyk(28.5%, 44.6%, 0%, 24.3%)
CIE-LABlab(51.57, 30.63, -40.74)
CIE-LCHlch(51.57, 50.97, 306.94°)
OKLaboklab(59.49% 0.0633 -0.1142)
OKLCHoklch(59.49% 0.131 299)
XYZxyz(25.3623, 19.7687, 52.9213)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BC1 #A2C16B
analogous
#6B77C1 #8A6BC1 #B56BC1
triadic
#8A6BC1 #C18A6B #6BC18A
tetradic
#8A6BC1 #C16B77 #A2C16B #6BC1B5
square
#8A6BC1 #C16B77 #A2C16B #6BC1B5
split-complementary
#8A6BC1 #C1B56B #77C16B
monochromatic
#4F347D #6A47A8 #8A6BC1 #AC96D3 #CEC1E5

Accessibility & contrast

On white

4.24
#8A6BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A6BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BC1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BC1#FFFFFF#000000##000000
##8A6BC11.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#527BC4
Deuteranopia (green-blind)
#587ABF
Tritanopia (blue-blind)
#7F7A8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6bc1;
/* rgb */ color: rgb(138, 107, 193);
/* oklch */ color: oklch(59.5% 0.131 299.0);
Tailwind
colors: {
  custom: {
    50: '#ae96d4',
    500: '#8a6bc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bc1;
$custom-light: #ae96d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bc1",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 193
  },
  "hsl": {
    "h": 261.628,
    "s": 40.952,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59493,
    "c": 0.13054,
    "h": 299
  },
  "luminance": 0.19769
}

Semantic roles & 50–950 ramp

primary
#8A6BC1
secondary
#C9D5B3
accent
#D157A5
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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