#8A6EDB#8A6EDB

#8A6EDB is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.5% C 0.160 H 292.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A6EDB
RGBrgb(138, 110, 219)
HSLhsl(255, 60%, 65%)
HSVhsv(255, 50%, 86%)
CMYKcmyk(37%, 49.8%, 0%, 14.1%)
CIE-LABlab(53.67, 35.67, -52.21)
CIE-LCHlch(53.67, 63.23, 304.34°)
OKLaboklab(61.52% 0.0624 -0.1477)
OKLCHoklch(61.52% 0.16 292.9)
XYZxyz(28.8400, 21.6689, 69.6671)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EDB #BFDB6E
analogous
#6E89DB #8A6EDB #C16EDB
triadic
#8A6EDB #DB8A6E #6EDB8A
tetradic
#8A6EDB #DB6E89 #BFDB6E #6EDBC1
square
#8A6EDB #DB6E89 #BFDB6E #6EDBC1
split-complementary
#8A6EDB #DBC16E #89DB6E
monochromatic
#4929A6 #623DCF #8A6EDB #B29FE7 #D9D0F3

Accessibility & contrast

On white

3.94
#8A6EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8A6EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EDB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EDB#FFFFFF#000000##000000
##8A6EDB1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4482DF
Deuteranopia (green-blind)
#497ED8
Tritanopia (blue-blind)
#76849A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6edb;
/* rgb */ color: rgb(138, 110, 219);
/* oklch */ color: oklch(61.5% 0.160 292.9);
Tailwind
colors: {
  custom: {
    50: '#b098e7',
    500: '#8a6edb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6edb;
$custom-light: #b098e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6edb",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 219
  },
  "hsl": {
    "h": 255.413,
    "s": 60.221,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6152,
    "c": 0.16032,
    "h": 292.9
  },
  "luminance": 0.2167
}

Semantic roles & 50–950 ramp

primary
#8A6EDB
secondary
#DCE5C0
accent
#C81E9C
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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