#8A6BE7#8A6BE7

#8A6BE7 is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.8% C 0.180 H 291.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A6BE7
RGBrgb(138, 107, 231)
HSLhsl(255, 72%, 66%)
HSVhsv(255, 54%, 91%)
CMYKcmyk(40.3%, 53.7%, 0%, 9.4%)
CIE-LABlab(53.69, 40.63, -58.93)
CIE-LCHlch(53.69, 71.58, 304.58°)
OKLaboklab(61.76% 0.0669 -0.1674)
OKLCHoklch(61.76% 0.18 291.8)
XYZxyz(30.1588, 21.6873, 78.1829)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BE7 #C8E76B
analogous
#6B8AE7 #8A6BE7 #C86BE7
triadic
#8A6BE7 #E78A6B #6BE78A
tetradic
#8A6BE7 #E76B8A #C8E76B #6BE7C8
square
#8A6BE7 #E76B8A #C8E76B #6BE7C8
split-complementary
#8A6BE7 #E7C86B #8AE76B
monochromatic
#451EBA #6036DE #8A6BE7 #B4A0F0 #DDD4F8

Accessibility & contrast

On white

3.93
#8A6BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#8A6BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BE7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BE7#FFFFFF#000000##000000
##8A6BE71.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3082EB
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#71859F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6be7;
/* rgb */ color: rgb(138, 107, 231);
/* oklch */ color: oklch(61.8% 0.180 291.8);
Tailwind
colors: {
  custom: {
    50: '#b196ef',
    500: '#8a6be7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6be7;
$custom-light: #b196ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6be7",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 231
  },
  "hsl": {
    "h": 255,
    "s": 72.093,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61761,
    "c": 0.18026,
    "h": 291.8
  },
  "luminance": 0.21688
}

Semantic roles & 50–950 ramp

primary
#8A6BE7
secondary
#E1EBC3
accent
#D411A3
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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