#8A6ECF#8A6ECF

#8A6ECF is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.8% C 0.144 H 295.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A6ECF
RGBrgb(138, 110, 207)
HSLhsl(257, 50%, 62%)
HSVhsv(257, 47%, 81%)
CMYKcmyk(33.3%, 46.9%, 0%, 18.8%)
CIE-LABlab(53.01, 32.49, -46.46)
CIE-LCHlch(53.01, 56.69, 304.96°)
OKLaboklab(60.81% 0.0612 -0.1308)
OKLCHoklch(60.81% 0.144 295.1)
XYZxyz(27.3168, 21.0597, 61.6451)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ECF #B3CF6E
analogous
#6E82CF #8A6ECF #BB6ECF
triadic
#8A6ECF #CF8A6E #6ECF8A
tetradic
#8A6ECF #CF6E82 #B3CF6E #6ECFBB
square
#8A6ECF #CF6E82 #B3CF6E #6ECFBB
split-complementary
#8A6ECF #CFBB6E #82CF6E
monochromatic
#4D3092 #6540C0 #8A6ECF #AF9CDE #D4CAED

Accessibility & contrast

On white

4.03
#8A6ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A6ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ECF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ECF#FFFFFF#000000##000000
##8A6ECF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7FD2
Deuteranopia (green-blind)
#527DCD
Tritanopia (blue-blind)
#7A8095
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6ecf;
/* rgb */ color: rgb(138, 110, 207);
/* oklch */ color: oklch(60.8% 0.144 295.1);
Tailwind
colors: {
  custom: {
    50: '#af98de',
    500: '#8a6ecf',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ecf;
$custom-light: #af98de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ecf",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 207
  },
  "hsl": {
    "h": 257.32,
    "s": 50.259,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60813,
    "c": 0.14445,
    "h": 295.1
  },
  "luminance": 0.2106
}

Semantic roles & 50–950 ramp

primary
#8A6ECF
secondary
#D4DEBB
accent
#BE2892
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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