#8A6BD8#8A6BD8

#8A6BD8 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.8% C 0.161 H 294.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A6BD8
RGBrgb(138, 107, 216)
HSLhsl(257, 58%, 63%)
HSVhsv(257, 50%, 85%)
CMYKcmyk(36.1%, 50.5%, 0%, 15.3%)
CIE-LABlab(52.81, 36.60, -51.89)
CIE-LCHlch(52.81, 63.50, 305.20°)
OKLaboklab(60.82% 0.066 -0.1467)
OKLCHoklch(60.82% 0.161 294.2)
XYZxyz(28.1304, 20.8760, 67.4998)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BD8 #B9D86B
analogous
#6B82D8 #8A6BD8 #C06BD8
triadic
#8A6BD8 #D88A6B #6BD88A
tetradic
#8A6BD8 #D86B82 #B9D86B #6BD8C0
square
#8A6BD8 #D86B82 #B9D86B #6BD8C0
split-complementary
#8A6BD8 #D8C06B #82D86B
monochromatic
#4B2A9F #643BCB #8A6BD8 #B09BE5 #D7CCF2

Accessibility & contrast

On white

4.06
#8A6BD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8A6BD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BD8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BD8#FFFFFF#000000##000000
##8A6BD81.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#417FDC
Deuteranopia (green-blind)
#477CD5
Tritanopia (blue-blind)
#778197
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6bd8;
/* rgb */ color: rgb(138, 107, 216);
/* oklch */ color: oklch(60.8% 0.161 294.2);
Tailwind
colors: {
  custom: {
    50: '#b096e4',
    500: '#8a6bd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bd8;
$custom-light: #b096e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bd8",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 216
  },
  "hsl": {
    "h": 257.064,
    "s": 58.289,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60823,
    "c": 0.16089,
    "h": 294.2
  },
  "luminance": 0.20877
}

Semantic roles & 50–950 ramp

primary
#8A6BD8
secondary
#D8E3BC
accent
#C62097
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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