#8A6FE0#8A6FE0

#8A6FE0 is a mid, vivid violet. Relative luminance 0.222; OKLCH L 62.0% C 0.165 H 291.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A6FE0
RGBrgb(138, 111, 224)
HSLhsl(254, 65%, 66%)
HSVhsv(254, 50%, 88%)
CMYKcmyk(38.4%, 50.4%, 0%, 12.2%)
CIE-LABlab(54.19, 36.44, -54.21)
CIE-LCHlch(54.19, 65.31, 303.91°)
OKLaboklab(62% 0.0616 -0.1535)
OKLCHoklch(62% 0.165 291.9)
XYZxyz(29.6166, 22.1532, 73.2221)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6FE0 #C5E06F
analogous
#6F8CE0 #8A6FE0 #C26FE0
triadic
#8A6FE0 #E08A6F #6FE08A
tetradic
#8A6FE0 #E06F8C #C5E06F #6FE0C2
square
#8A6FE0 #E06F8C #C5E06F #6FE0C2
split-complementary
#8A6FE0 #E0C26F #8CE06F
monochromatic
#4626AF #613DD5 #8A6FE0 #B3A1EB #DCD4F6

Accessibility & contrast

On white

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

On black

5.43
#8A6FE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6FE0
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6FE0#FFFFFF#000000##000000
##8A6FE01.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4183E4
Deuteranopia (green-blind)
#457FDD
Tritanopia (blue-blind)
#74869D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a6fe0;
/* rgb */ color: rgb(138, 111, 224);
/* oklch */ color: oklch(62.0% 0.165 291.9);
Tailwind
colors: {
  custom: {
    50: '#b099ea',
    500: '#8a6fe0',
    950: '#000000',
  },
}
SCSS
$custom: #8a6fe0;
$custom-light: #b099ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6fe0",
  "rgb": {
    "r": 138,
    "g": 111,
    "b": 224
  },
  "hsl": {
    "h": 254.336,
    "s": 64.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61996,
    "c": 0.16541,
    "h": 291.9
  },
  "luminance": 0.22154
}

Semantic roles & 50–950 ramp

primary
#8A6FE0
secondary
#DFE8C3
accent
#CC19A2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A6FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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