#8A6ECD#8A6ECD

#8A6ECD is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.7% C 0.142 H 295.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A6ECD
RGBrgb(138, 110, 205)
HSLhsl(258, 49%, 62%)
HSVhsv(258, 46%, 80%)
CMYKcmyk(32.7%, 46.3%, 0%, 19.6%)
CIE-LABlab(52.91, 31.96, -45.49)
CIE-LCHlch(52.91, 55.60, 305.09°)
OKLaboklab(60.7% 0.0609 -0.128)
OKLCHoklch(60.7% 0.142 295.4)
XYZxyz(27.0739, 20.9625, 60.3655)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ECD #B1CD6E
analogous
#6E82CD #8A6ECD #BA6ECD
triadic
#8A6ECD #CD8A6E #6ECD8A
tetradic
#8A6ECD #CD6E82 #B1CD6E #6ECDBA
square
#8A6ECD #CD6E82 #B1CD6E #6ECDBA
split-complementary
#8A6ECD #CDBA6E #82CD6E
monochromatic
#4D318F #6641BD #8A6ECD #AF9CDD #D3C9EC

Accessibility & contrast

On white

4.04
#8A6ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A6ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ECD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ECD#FFFFFF#000000##000000
##8A6ECD1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#547DCB
Tritanopia (blue-blind)
#7B8094
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6ecd;
/* rgb */ color: rgb(138, 110, 205);
/* oklch */ color: oklch(60.7% 0.142 295.4);
Tailwind
colors: {
  custom: {
    50: '#af98dd',
    500: '#8a6ecd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ecd;
$custom-light: #af98dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ecd",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 205
  },
  "hsl": {
    "h": 257.684,
    "s": 48.718,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60698,
    "c": 0.14177,
    "h": 295.4
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#8A6ECD
secondary
#D3DDBA
accent
#BC2991
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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