#8A6CBE#8A6CBE

#8A6CBE is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.5% C 0.125 H 299.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A6CBE
RGBrgb(138, 108, 190)
HSLhsl(262, 39%, 58%)
HSVhsv(262, 43%, 75%)
CMYKcmyk(27.4%, 43.2%, 0%, 25.5%)
CIE-LABlab(51.66, 29.29, -38.88)
CIE-LCHlch(51.66, 48.68, 306.99°)
OKLaboklab(59.51% 0.0614 -0.1087)
OKLCHoklch(59.51% 0.125 299.5)
XYZxyz(25.1359, 19.8460, 51.2116)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CBE #A0BE6C
analogous
#6C77BE #8A6CBE #B36CBE
triadic
#8A6CBE #BE8A6C #6CBE8A
tetradic
#8A6CBE #BE6C77 #A0BE6C #6CBEB3
square
#8A6CBE #BE6C77 #A0BE6C #6CBEB3
split-complementary
#8A6CBE #BEB36C #77BE6C
monochromatic
#4F367A #6A49A4 #8A6CBE #AC96D1 #CEC1E4

Accessibility & contrast

On white

4.23
#8A6CBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8A6CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CBE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CBE#FFFFFF#000000##000000
##8A6CBE1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#557BC1
Deuteranopia (green-blind)
#5B7BBC
Tritanopia (blue-blind)
#807A8C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6cbe;
/* rgb */ color: rgb(138, 108, 190);
/* oklch */ color: oklch(59.5% 0.125 299.5);
Tailwind
colors: {
  custom: {
    50: '#ae96d2',
    500: '#8a6cbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cbe;
$custom-light: #ae96d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cbe",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 190
  },
  "hsl": {
    "h": 261.951,
    "s": 38.679,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5951,
    "c": 0.1249,
    "h": 299.5
  },
  "luminance": 0.19846
}

Semantic roles & 50–950 ramp

primary
#8A6CBE
secondary
#C7D3B3
accent
#CF59A4
background
#FAF9FC
surface
#F5F2F9
border
#CFCCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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