#8A6CBD#8A6CBD

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

Color values

HEX#8A6CBD
RGBrgb(138, 108, 189)
HSLhsl(262, 38%, 58%)
HSVhsv(262, 43%, 74%)
CMYKcmyk(27%, 42.9%, 0%, 25.9%)
CIE-LABlab(51.61, 29.04, -38.38)
CIE-LCHlch(51.61, 48.13, 307.11°)
OKLaboklab(59.46% 0.0613 -0.1073)
OKLCHoklch(59.46% 0.124 299.7)
XYZxyz(25.0270, 19.8024, 50.6380)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CBD #9FBD6C
analogous
#6C76BD #8A6CBD #B26CBD
triadic
#8A6CBD #BD8A6C #6CBD8A
tetradic
#8A6CBD #BD6C76 #9FBD6C #6CBDB2
square
#8A6CBD #BD6C76 #9FBD6C #6CBDB2
split-complementary
#8A6CBD #BDB26C #76BD6C
monochromatic
#4F3678 #6A49A3 #8A6CBD #AC96D0 #CDC0E3

Accessibility & contrast

On white

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

On black

4.96
#8A6CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CBD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CBD#FFFFFF#000000##000000
##8A6CBD1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#567BC0
Deuteranopia (green-blind)
#5C7ABB
Tritanopia (blue-blind)
#807A8B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6cbd;
/* rgb */ color: rgb(138, 108, 189);
/* oklch */ color: oklch(59.5% 0.124 299.7);
Tailwind
colors: {
  custom: {
    50: '#ae96d1',
    500: '#8a6cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cbd;
$custom-light: #ae96d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cbd",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 189
  },
  "hsl": {
    "h": 262.222,
    "s": 38.028,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.12356,
    "h": 299.7
  },
  "luminance": 0.19803
}

Semantic roles & 50–950 ramp

primary
#8A6CBD
secondary
#C7D3B2
accent
#CE5AA3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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