#8A6BEC#8A6BEC

#8A6BEC is a light, vivid violet. Relative luminance 0.220; OKLCH L 62.1% C 0.187 H 291.0°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A6BEC
RGBrgb(138, 107, 236)
HSLhsl(254, 77%, 67%)
HSVhsv(254, 55%, 93%)
CMYKcmyk(41.5%, 54.7%, 0%, 7.5%)
CIE-LABlab(54.00, 41.99, -61.24)
CIE-LCHlch(54.00, 74.25, 304.44°)
OKLaboklab(62.09% 0.067 -0.1742)
OKLCHoklch(62.09% 0.187 291)
XYZxyz(30.8751, 21.9738, 81.9552)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BEC #CDEC6B
analogous
#6B8CEC #8A6BEC #CB6BEC
triadic
#8A6BEC #EC8A6B #6BEC8A
tetradic
#8A6BEC #EC6B8C #CDEC6B #6BECCB
square
#8A6BEC #EC6B8C #CDEC6B #6BECCB
split-complementary
#8A6BEC #ECCB6B #8CEC6B
monochromatic
#4219C4 #5F35E5 #8A6BEC #B5A1F3 #E0D7FA

Accessibility & contrast

On white

3.89
#8A6BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8A6BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BEC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BEC#FFFFFF#000000##000000
##8A6BEC1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2883F0
Deuteranopia (green-blind)
#2F7EE9
Tritanopia (blue-blind)
#6F87A1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6bec;
/* rgb */ color: rgb(138, 107, 236);
/* oklch */ color: oklch(62.1% 0.187 291.0);
Tailwind
colors: {
  custom: {
    50: '#b296f3',
    500: '#8a6bec',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bec;
$custom-light: #b296f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bec",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 254.419,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.62085,
    "c": 0.18662,
    "h": 291
  },
  "luminance": 0.21975
}

Semantic roles & 50–950 ramp

primary
#8A6BEC
secondary
#E4EEC5
accent
#D90CA8
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A6BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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