#8A6FDF#8A6FDF

#8A6FDF is a mid, vivid violet. Relative luminance 0.221; OKLCH L 61.9% C 0.164 H 292.0°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A6FDF
RGBrgb(138, 111, 223)
HSLhsl(254, 64%, 65%)
HSVhsv(254, 50%, 87%)
CMYKcmyk(38.1%, 50.2%, 0%, 12.5%)
CIE-LABlab(54.13, 36.17, -53.74)
CIE-LCHlch(54.13, 64.77, 303.94°)
OKLaboklab(61.93% 0.0615 -0.1521)
OKLCHoklch(61.93% 0.164 292)
XYZxyz(29.4814, 22.0991, 72.5100)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FDF #C4DF6F
analogous
#6F8CDF #8A6FDF #C26FDF
triadic
#8A6FDF #DF8A6F #6FDF8A
tetradic
#8A6FDF #DF6F8C #C4DF6F #6FDFC2
square
#8A6FDF #DF6F8C #C4DF6F #6FDFC2
split-complementary
#8A6FDF #DFC26F #8CDF6F
monochromatic
#4726AD #613DD4 #8A6FDF #B3A1EA #DBD3F5

Accessibility & contrast

On white

3.87
#8A6FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#8A6FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FDF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FDF#FFFFFF#000000##000000
##8A6FDF1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4283E3
Deuteranopia (green-blind)
#467FDC
Tritanopia (blue-blind)
#74869D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6fdf;
/* rgb */ color: rgb(138, 111, 223);
/* oklch */ color: oklch(61.9% 0.164 292.0);
Tailwind
colors: {
  custom: {
    50: '#b099e9',
    500: '#8a6fdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fdf;
$custom-light: #b099e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fdf",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 223
  },
  "hsl": {
    "h": 254.464,
    "s": 63.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61935,
    "c": 0.1641,
    "h": 292
  },
  "luminance": 0.221
}

Semantic roles & 50–950 ramp

primary
#8A6FDF
secondary
#DFE8C2
accent
#CB1AA1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A6FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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