#8A6FDC#8A6FDC

#8A6FDC is a mid, vivid violet. Relative luminance 0.219; OKLCH L 61.8% C 0.160 H 292.5°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A6FDC
RGBrgb(138, 111, 220)
HSLhsl(255, 61%, 65%)
HSVhsv(255, 50%, 86%)
CMYKcmyk(37.3%, 49.5%, 0%, 13.7%)
CIE-LABlab(53.96, 35.36, -52.32)
CIE-LCHlch(53.96, 63.14, 304.05°)
OKLaboklab(61.75% 0.0613 -0.148)
OKLCHoklch(61.75% 0.16 292.5)
XYZxyz(29.0805, 21.9388, 70.3987)
Luminance0.2194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FDC #C1DC6F
analogous
#6F8BDC #8A6FDC #C06FDC
triadic
#8A6FDC #DC8A6F #6FDC8A
tetradic
#8A6FDC #DC6F8B #C1DC6F #6FDCC0
square
#8A6FDC #DC6F8B #C1DC6F #6FDCC0
split-complementary
#8A6FDC #DCC06F #8BDC6F
monochromatic
#4829A8 #623ED0 #8A6FDC #B2A0E8 #DAD1F4

Accessibility & contrast

On white

3.90
#8A6FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#8A6FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FDC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FDC#FFFFFF#000000##000000
##8A6FDC1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4583E0
Deuteranopia (green-blind)
#497FD9
Tritanopia (blue-blind)
#75859B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6fdc;
/* rgb */ color: rgb(138, 111, 220);
/* oklch */ color: oklch(61.8% 0.160 292.5);
Tailwind
colors: {
  custom: {
    50: '#b099e7',
    500: '#8a6fdc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fdc;
$custom-light: #b099e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fdc",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 220
  },
  "hsl": {
    "h": 254.862,
    "s": 60.894,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61753,
    "c": 0.16016,
    "h": 292.5
  },
  "luminance": 0.21939
}

Semantic roles & 50–950 ramp

primary
#8A6FDC
secondary
#DDE6C1
accent
#C91D9E
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A6FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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