#8A6BEB#8A6BEB

#8A6BEB is a light, vivid violet. Relative luminance 0.219; OKLCH L 62.0% C 0.185 H 291.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A6BEB
RGBrgb(138, 107, 235)
HSLhsl(255, 76%, 67%)
HSVhsv(255, 54%, 92%)
CMYKcmyk(41.3%, 54.5%, 0%, 7.8%)
CIE-LABlab(53.94, 41.72, -60.78)
CIE-LCHlch(53.94, 73.72, 304.46°)
OKLaboklab(62.02% 0.067 -0.1728)
OKLCHoklch(62.02% 0.185 291.2)
XYZxyz(30.7302, 21.9159, 81.1922)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BEB #CCEB6B
analogous
#6B8CEB #8A6BEB #CA6BEB
triadic
#8A6BEB #EB8A6B #6BEB8A
tetradic
#8A6BEB #EB6B8C #CCEB6B #6BEBCA
square
#8A6BEB #EB6B8C #CCEB6B #6BEBCA
split-complementary
#8A6BEB #EBCA6B #8CEB6B
monochromatic
#431AC1 #5F35E4 #8A6BEB #B5A1F2 #DFD7FA

Accessibility & contrast

On white

3.90
#8A6BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#8A6BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BEB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BEB#FFFFFF#000000##000000
##8A6BEB1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A83EF
Deuteranopia (green-blind)
#317EE8
Tritanopia (blue-blind)
#6F86A1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6beb;
/* rgb */ color: rgb(138, 107, 235);
/* oklch */ color: oklch(62.0% 0.185 291.2);
Tailwind
colors: {
  custom: {
    50: '#b196f2',
    500: '#8a6beb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6beb;
$custom-light: #b196f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6beb",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 235
  },
  "hsl": {
    "h": 254.531,
    "s": 76.19,
    "l": 67.059
  },
  "oklch": {
    "l": 0.6202,
    "c": 0.18536,
    "h": 291.2
  },
  "luminance": 0.21917
}

Semantic roles & 50–950 ramp

primary
#8A6BEB
secondary
#E3EDC5
accent
#D80DA7
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A6BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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