#8A6ECA#8A6ECA

#8A6ECA is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.5% C 0.138 H 296.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A6ECA
RGBrgb(138, 110, 202)
HSLhsl(258, 46%, 61%)
HSVhsv(258, 46%, 79%)
CMYKcmyk(31.7%, 45.5%, 0%, 20.8%)
CIE-LABlab(52.75, 31.18, -44.03)
CIE-LCHlch(52.75, 53.96, 305.31°)
OKLaboklab(60.53% 0.0605 -0.1237)
OKLCHoklch(60.53% 0.138 296.1)
XYZxyz(26.7152, 20.8190, 58.4766)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ECA #AECA6E
analogous
#6E80CA #8A6ECA #B86ECA
triadic
#8A6ECA #CA8A6E #6ECA8A
tetradic
#8A6ECA #CA6E80 #AECA6E #6ECAB8
square
#8A6ECA #CA6E80 #AECA6E #6ECAB8
split-complementary
#8A6ECA #CAB86E #80CA6E
monochromatic
#4E338B #6743B8 #8A6ECA #AE9BDA #D2C8EB

Accessibility & contrast

On white

4.07
#8A6ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A6ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ECA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ECA#FFFFFF#000000##000000
##8A6ECA1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#517ECD
Deuteranopia (green-blind)
#567DC8
Tritanopia (blue-blind)
#7C7F92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6eca;
/* rgb */ color: rgb(138, 110, 202);
/* oklch */ color: oklch(60.5% 0.138 296.1);
Tailwind
colors: {
  custom: {
    50: '#af98da',
    500: '#8a6eca',
    950: '#000000',
  },
}
SCSS
$custom: #8a6eca;
$custom-light: #af98da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6eca",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 202
  },
  "hsl": {
    "h": 258.261,
    "s": 46.465,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60528,
    "c": 0.13776,
    "h": 296.1
  },
  "luminance": 0.20819
}

Semantic roles & 50–950 ramp

primary
#8A6ECA
secondary
#D1DBB9
accent
#BA2C8F
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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