#8A6CDB#8A6CDB

#8A6CDB is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.2% C 0.163 H 293.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A6CDB
RGBrgb(138, 108, 219)
HSLhsl(256, 61%, 64%)
HSVhsv(256, 51%, 86%)
CMYKcmyk(37%, 50.7%, 0%, 14.1%)
CIE-LABlab(53.21, 36.82, -52.95)
CIE-LCHlch(53.21, 64.49, 304.82°)
OKLaboklab(61.18% 0.065 -0.1498)
OKLCHoklch(61.18% 0.163 293.4)
XYZxyz(28.6266, 21.2422, 69.5960)
Luminance0.2124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CDB #BDDB6C
analogous
#6C86DB #8A6CDB #C26CDB
triadic
#8A6CDB #DB8A6C #6CDB8A
tetradic
#8A6CDB #DB6C86 #BDDB6C #6CDBC2
square
#8A6CDB #DB6C86 #BDDB6C #6CDBC2
split-complementary
#8A6CDB #DBC26C #86DB6C
monochromatic
#4A28A4 #633BCF #8A6CDB #B19DE7 #D8CEF3

Accessibility & contrast

On white

4.00
#8A6CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#8A6CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CDB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CDB#FFFFFF#000000##000000
##8A6CDB1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#467DD8
Tritanopia (blue-blind)
#768299
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6cdb;
/* rgb */ color: rgb(138, 108, 219);
/* oklch */ color: oklch(61.2% 0.163 293.4);
Tailwind
colors: {
  custom: {
    50: '#b097e7',
    500: '#8a6cdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cdb;
$custom-light: #b097e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cdb",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 219
  },
  "hsl": {
    "h": 256.216,
    "s": 60.656,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61176,
    "c": 0.16331,
    "h": 293.4
  },
  "luminance": 0.21243
}

Semantic roles & 50–950 ramp

primary
#8A6CDB
secondary
#DAE5BE
accent
#C81D9A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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