#8A6BC8#8A6BC8

#8A6BC8 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 59.9% C 0.140 H 297.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A6BC8
RGBrgb(138, 107, 200)
HSLhsl(260, 46%, 60%)
HSVhsv(260, 47%, 78%)
CMYKcmyk(31%, 46.5%, 0%, 21.6%)
CIE-LABlab(51.94, 32.41, -44.18)
CIE-LCHlch(51.94, 54.80, 306.27°)
OKLaboklab(59.88% 0.0643 -0.1242)
OKLCHoklch(59.88% 0.14 297.4)
XYZxyz(26.1617, 20.0885, 57.1315)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BC8 #A9C86B
analogous
#6B7AC8 #8A6BC8 #B86BC8
triadic
#8A6BC8 #C88A6B #6BC88A
tetradic
#8A6BC8 #C86B7A #A9C86B #6BC8B8
square
#8A6BC8 #C86B7A #A9C86B #6BC8B8
split-complementary
#8A6BC8 #C8B86B #7AC86B
monochromatic
#4E3287 #6843B3 #8A6BC8 #AD98D9 #D1C4E9

Accessibility & contrast

On white

4.19
#8A6BC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8A6BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BC8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BC8#FFFFFF#000000##000000
##8A6BC81.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7CCB
Deuteranopia (green-blind)
#547BC6
Tritanopia (blue-blind)
#7D7C90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a6bc8;
/* rgb */ color: rgb(138, 107, 200);
/* oklch */ color: oklch(59.9% 0.140 297.4);
Tailwind
colors: {
  custom: {
    50: '#af96d9',
    500: '#8a6bc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bc8;
$custom-light: #af96d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bc8",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 260,
    "s": 45.813,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59883,
    "c": 0.13985,
    "h": 297.4
  },
  "luminance": 0.20089
}

Semantic roles & 50–950 ramp

primary
#8A6BC8
secondary
#CDD9B6
accent
#B92C8A
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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