#8A6ECB#8A6ECB

#8A6ECB is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.6% C 0.139 H 295.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A6ECB
RGBrgb(138, 110, 203)
HSLhsl(258, 47%, 61%)
HSVhsv(258, 46%, 80%)
CMYKcmyk(32%, 45.8%, 0%, 20.4%)
CIE-LABlab(52.80, 31.44, -44.52)
CIE-LCHlch(52.80, 54.51, 305.23°)
OKLaboklab(60.59% 0.0607 -0.1252)
OKLCHoklch(60.59% 0.139 295.9)
XYZxyz(26.8340, 20.8665, 59.1022)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ECB #AFCB6E
analogous
#6E81CB #8A6ECB #B96ECB
triadic
#8A6ECB #CB8A6E #6ECB8A
tetradic
#8A6ECB #CB6E81 #AFCB6E #6ECBB9
square
#8A6ECB #CB6E81 #AFCB6E #6ECBB9
split-complementary
#8A6ECB #CBB96E #81CB6E
monochromatic
#4D328C #6642B9 #8A6ECB #AE9BDB #D3C8EB

Accessibility & contrast

On white

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

On black

5.17
#8A6ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ECB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ECB#FFFFFF#000000##000000
##8A6ECB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCE
Deuteranopia (green-blind)
#557DC9
Tritanopia (blue-blind)
#7C7F93
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6ecb;
/* rgb */ color: rgb(138, 110, 203);
/* oklch */ color: oklch(60.6% 0.139 295.9);
Tailwind
colors: {
  custom: {
    50: '#af98db',
    500: '#8a6ecb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ecb;
$custom-light: #af98db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ecb",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 203
  },
  "hsl": {
    "h": 258.065,
    "s": 47.208,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60585,
    "c": 0.1391,
    "h": 295.9
  },
  "luminance": 0.20867
}

Semantic roles & 50–950 ramp

primary
#8A6ECB
secondary
#D1DCB9
accent
#BA2B8F
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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