#8A6BE2#8A6BE2

#8A6BE2 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.4% C 0.174 H 292.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A6BE2
RGBrgb(138, 107, 226)
HSLhsl(256, 67%, 65%)
HSVhsv(256, 53%, 89%)
CMYKcmyk(38.9%, 52.7%, 0%, 11.4%)
CIE-LABlab(53.39, 39.28, -56.60)
CIE-LCHlch(53.39, 68.90, 304.75°)
OKLaboklab(61.44% 0.0666 -0.1606)
OKLCHoklch(61.44% 0.174 292.5)
XYZxyz(29.4627, 21.4089, 74.5168)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6BE2 #C3E26B
analogous
#6B87E2 #8A6BE2 #C56BE2
triadic
#8A6BE2 #E28A6B #6BE28A
tetradic
#8A6BE2 #E26B87 #C3E26B #6BE2C5
square
#8A6BE2 #E26B87 #C3E26B #6BE2C5
split-complementary
#8A6BE2 #E2C56B #87E26B
monochromatic
#4723B0 #6238D8 #8A6BE2 #B29EEC #DBD1F6

Accessibility & contrast

On white

3.98
#8A6BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8A6BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6BE2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6BE2#FFFFFF#000000##000000
##8A6BE21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3781E6
Deuteranopia (green-blind)
#3D7DDF
Tritanopia (blue-blind)
#73849C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6be2;
/* rgb */ color: rgb(138, 107, 226);
/* oklch */ color: oklch(61.4% 0.174 292.5);
Tailwind
colors: {
  custom: {
    50: '#b196ec',
    500: '#8a6be2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6be2;
$custom-light: #b196ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6be2",
  "rgb": {
    "r": 138,
    "g": 107,
    "b": 226
  },
  "hsl": {
    "h": 255.63,
    "s": 67.232,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61442,
    "c": 0.17384,
    "h": 292.5
  },
  "luminance": 0.2141
}

Semantic roles & 50–950 ramp

primary
#8A6BE2
secondary
#DEE8C0
accent
#CF169F
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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