#8A6EDD#8A6EDD

#8A6EDD is a mid, vivid violet. Relative luminance 0.218; OKLCH L 61.6% C 0.163 H 292.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A6EDD
RGBrgb(138, 110, 221)
HSLhsl(255, 62%, 65%)
HSVhsv(255, 50%, 87%)
CMYKcmyk(37.6%, 50.2%, 0%, 13.3%)
CIE-LABlab(53.79, 36.20, -53.16)
CIE-LCHlch(53.79, 64.32, 304.26°)
OKLaboklab(61.64% 0.0626 -0.1504)
OKLCHoklch(61.64% 0.163 292.6)
XYZxyz(29.1048, 21.7749, 71.0621)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EDD #C1DD6E
analogous
#6E8ADD #8A6EDD #C16EDD
triadic
#8A6EDD #DD8A6E #6EDD8A
tetradic
#8A6EDD #DD6E8A #C1DD6E #6EDDC1
square
#8A6EDD #DD6E8A #C1DD6E #6EDDC1
split-complementary
#8A6EDD #DDC16E #8ADD6E
monochromatic
#4828A9 #623CD1 #8A6EDD #B2A0E9 #DAD1F4

Accessibility & contrast

On white

3.92
#8A6EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#8A6EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EDD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EDD#FFFFFF#000000##000000
##8A6EDD1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4282E1
Deuteranopia (green-blind)
#477EDA
Tritanopia (blue-blind)
#75849B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6edd;
/* rgb */ color: rgb(138, 110, 221);
/* oklch */ color: oklch(61.6% 0.163 292.6);
Tailwind
colors: {
  custom: {
    50: '#b098e8',
    500: '#8a6edd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6edd;
$custom-light: #b098e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6edd",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 221
  },
  "hsl": {
    "h": 255.135,
    "s": 62.011,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61641,
    "c": 0.16295,
    "h": 292.6
  },
  "luminance": 0.21776
}

Semantic roles & 50–950 ramp

primary
#8A6EDD
secondary
#DDE6C0
accent
#CA1C9E
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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