#8A6BDD#8A6BDD

#8A6BDD is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.1% C 0.167 H 293.4°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A6BDD
RGBrgb(138, 107, 221)
HSLhsl(256, 63%, 64%)
HSVhsv(256, 52%, 87%)
CMYKcmyk(37.6%, 51.6%, 0%, 13.3%)
CIE-LABlab(53.10, 37.93, -54.26)
CIE-LCHlch(53.10, 66.20, 304.96°)
OKLaboklab(61.13% 0.0664 -0.1537)
OKLCHoklch(61.13% 0.167 293.4)
XYZxyz(28.7866, 21.1385, 70.9560)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BDD #BEDD6B
analogous
#6B85DD #8A6BDD #C36BDD
triadic
#8A6BDD #DD8A6B #6BDD8A
tetradic
#8A6BDD #DD6B85 #BEDD6B #6BDDC3
square
#8A6BDD #DD6B85 #BEDD6B #6BDDC3
split-complementary
#8A6BDD #DDC36B #85DD6B
monochromatic
#4926A7 #6339D2 #8A6BDD #B19DE8 #D9CFF4

Accessibility & contrast

On white

4.02
#8A6BDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#8A6BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BDD
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BDD#FFFFFF#000000##000000
##8A6BDD1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C80E1
Deuteranopia (green-blind)
#427DDA
Tritanopia (blue-blind)
#75829A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6bdd;
/* rgb */ color: rgb(138, 107, 221);
/* oklch */ color: oklch(61.1% 0.167 293.4);
Tailwind
colors: {
  custom: {
    50: '#b096e8',
    500: '#8a6bdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bdd;
$custom-light: #b096e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bdd",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 221
  },
  "hsl": {
    "h": 256.316,
    "s": 62.637,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61129,
    "c": 0.16739,
    "h": 293.4
  },
  "luminance": 0.21139
}

Semantic roles & 50–950 ramp

primary
#8A6BDD
secondary
#DBE6BE
accent
#CA1B9B
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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