#8A6DFB#8A6DFB

#8A6DFB is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 63.4% C 0.203 H 288.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A6DFB
RGBrgb(138, 109, 251)
HSLhsl(252, 95%, 71%)
HSVhsv(252, 57%, 98%)
CMYKcmyk(45%, 56.6%, 0%, 1.6%)
CIE-LABlab(55.38, 44.99, -67.35)
CIE-LCHlch(55.38, 81.00, 303.74°)
OKLaboklab(63.41% 0.0649 -0.1921)
OKLCHoklch(63.41% 0.203 288.6)
XYZxyz(33.3575, 23.3043, 93.9887)
Luminance0.2331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DFB #DEFB6D
analogous
#6D97FB #8A6DFB #D16DFB
triadic
#8A6DFB #FB8A6D #6DFB8A
tetradic
#8A6DFB #FB6D97 #DEFB6D #6DFBD1
square
#8A6DFB #FB6D97 #DEFB6D #6DFBD1
split-complementary
#8A6DFB #FBD16D #97FB6D
monochromatic
#3406E7 #5A31F9 #8A6DFB #BAA9FD #E7E1FE

Accessibility & contrast

On white

3.71
#8A6DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8A6DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DFB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DFB#FFFFFF#000000##000000
##8A6DFB1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0788FF
Deuteranopia (green-blind)
#1081F8
Tritanopia (blue-blind)
#678DAA
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a6dfb;
/* rgb */ color: rgb(138, 109, 251);
/* oklch */ color: oklch(63.4% 0.203 288.6);
Tailwind
colors: {
  custom: {
    50: '#b398fd',
    500: '#8a6dfb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dfb;
$custom-light: #b398fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dfb",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 251
  },
  "hsl": {
    "h": 252.254,
    "s": 94.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.6341,
    "c": 0.2028,
    "h": 288.6
  },
  "luminance": 0.23306
}

Semantic roles & 50–950 ramp

primary
#8A6DFB
secondary
#EDF5CF
accent
#E600B7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #8A6DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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