#8A6EE2#8A6EE2

#8A6EE2 is a mid, vivid violet. Relative luminance 0.220; OKLCH L 61.9% C 0.169 H 291.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A6EE2
RGBrgb(138, 110, 226)
HSLhsl(254, 67%, 66%)
HSVhsv(254, 51%, 89%)
CMYKcmyk(38.9%, 51.3%, 0%, 11.4%)
CIE-LABlab(54.08, 37.55, -55.51)
CIE-LCHlch(54.08, 67.02, 304.08°)
OKLaboklab(61.95% 0.063 -0.1573)
OKLCHoklch(61.95% 0.169 291.8)
XYZxyz(29.7809, 22.0453, 74.6228)
Luminance0.2205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EE2 #C6E26E
analogous
#6E8CE2 #8A6EE2 #C46EE2
triadic
#8A6EE2 #E28A6E #6EE28A
tetradic
#8A6EE2 #E26E8C #C6E26E #6EE2C4
square
#8A6EE2 #E26E8C #C6E26E #6EE2C4
split-complementary
#8A6EE2 #E2C46E #8CE26E
monochromatic
#4624B2 #613BD8 #8A6EE2 #B3A1EC #DCD4F6

Accessibility & contrast

On white

3.88
#8A6EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A6EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EE2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EE2#FFFFFF#000000##000000
##8A6EE21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D83E6
Deuteranopia (green-blind)
#427FDF
Tritanopia (blue-blind)
#73869E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6ee2;
/* rgb */ color: rgb(138, 110, 226);
/* oklch */ color: oklch(61.9% 0.169 291.8);
Tailwind
colors: {
  custom: {
    50: '#b098ec',
    500: '#8a6ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ee2;
$custom-light: #b098ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ee2",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 226
  },
  "hsl": {
    "h": 254.483,
    "s": 66.667,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61949,
    "c": 0.16948,
    "h": 291.8
  },
  "luminance": 0.22046
}

Semantic roles & 50–950 ramp

primary
#8A6EE2
secondary
#E0E9C3
accent
#CF17A2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A6EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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