#8A6DCD#8A6DCD

#8A6DCD is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.5% C 0.143 H 295.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A6DCD
RGBrgb(138, 109, 205)
HSLhsl(258, 49%, 62%)
HSVhsv(258, 47%, 80%)
CMYKcmyk(32.7%, 46.8%, 0%, 19.6%)
CIE-LABlab(52.67, 32.55, -45.87)
CIE-LCHlch(52.67, 56.24, 305.36°)
OKLaboklab(60.52% 0.0623 -0.1291)
OKLCHoklch(60.52% 0.143 295.7)
XYZxyz(26.9666, 20.7479, 60.3298)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DCD #B0CD6D
analogous
#6D80CD #8A6DCD #BA6DCD
triadic
#8A6DCD #CD8A6D #6DCD8A
tetradic
#8A6DCD #CD6D80 #B0CD6D #6DCDBA
square
#8A6DCD #CD6D80 #B0CD6D #6DCDBA
split-complementary
#8A6DCD #CDBA6D #80CD6D
monochromatic
#4D318F #6640BC #8A6DCD #AF9BDD #D3C8EC

Accessibility & contrast

On white

4.08
#8A6DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A6DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DCD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DCD#FFFFFF#000000##000000
##8A6DCD1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7ED0
Deuteranopia (green-blind)
#537CCB
Tritanopia (blue-blind)
#7B7F93
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6dcd;
/* rgb */ color: rgb(138, 109, 205);
/* oklch */ color: oklch(60.5% 0.143 295.7);
Tailwind
colors: {
  custom: {
    50: '#af97dd',
    500: '#8a6dcd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dcd;
$custom-light: #af97dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dcd",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 205
  },
  "hsl": {
    "h": 258.125,
    "s": 48.98,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.14334,
    "h": 295.7
  },
  "luminance": 0.20748
}

Semantic roles & 50–950 ramp

primary
#8A6DCD
secondary
#D2DDB9
accent
#BC2990
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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