#8A6BEA#8A6BEA

#8A6BEA is a mid, vivid violet. Relative luminance 0.219; OKLCH L 62.0% C 0.184 H 291.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A6BEA
RGBrgb(138, 107, 234)
HSLhsl(255, 75%, 67%)
HSVhsv(255, 54%, 92%)
CMYKcmyk(41%, 54.3%, 0%, 8.2%)
CIE-LABlab(53.88, 41.44, -60.32)
CIE-LCHlch(53.88, 73.19, 304.49°)
OKLaboklab(61.96% 0.067 -0.1715)
OKLCHoklch(61.96% 0.184 291.3)
XYZxyz(30.5861, 21.8583, 80.4335)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BEA #CBEA6B
analogous
#6B8CEA #8A6BEA #CA6BEA
triadic
#8A6BEA #EA8A6B #6BEA8A
tetradic
#8A6BEA #EA6B8C #CBEA6B #6BEACA
square
#8A6BEA #EA6B8C #CBEA6B #6BEACA
split-complementary
#8A6BEA #EACA6B #8CEA6B
monochromatic
#431BBF #6035E2 #8A6BEA #B4A1F2 #DFD6F9

Accessibility & contrast

On white

3.91
#8A6BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8A6BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BEA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BEA#FFFFFF#000000##000000
##8A6BEA1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C83EE
Deuteranopia (green-blind)
#327EE7
Tritanopia (blue-blind)
#7086A0
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6bea;
/* rgb */ color: rgb(138, 107, 234);
/* oklch */ color: oklch(62.0% 0.184 291.3);
Tailwind
colors: {
  custom: {
    50: '#b196f1',
    500: '#8a6bea',
    950: '#000000',
  },
}
SCSS
$custom: #8a6bea;
$custom-light: #b196f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6bea",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 234
  },
  "hsl": {
    "h": 254.646,
    "s": 75.148,
    "l": 66.863
  },
  "oklch": {
    "l": 0.61955,
    "c": 0.18408,
    "h": 291.3
  },
  "luminance": 0.21859
}

Semantic roles & 50–950 ramp

primary
#8A6BEA
secondary
#E3EDC4
accent
#D70EA6
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A6BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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