#8A6DBB#8A6DBB

#8A6DBB is a mid, moderate violet. Relative luminance 0.199; OKLCH L 59.5% C 0.119 H 299.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A6DBB
RGBrgb(138, 109, 187)
HSLhsl(262, 36%, 58%)
HSVhsv(262, 42%, 73%)
CMYKcmyk(26.2%, 41.7%, 0%, 26.7%)
CIE-LABlab(51.76, 27.95, -37.00)
CIE-LCHlch(51.76, 46.38, 307.07°)
OKLaboklab(59.53% 0.0595 -0.1033)
OKLCHoklch(59.53% 0.119 299.9)
XYZxyz(24.9175, 19.9283, 49.5379)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DBB #9EBB6D
analogous
#6D77BB #8A6DBB #B16DBB
triadic
#8A6DBB #BB8A6D #6DBB8A
tetradic
#8A6DBB #BB6D77 #9EBB6D #6DBBB1
square
#8A6DBB #BB6D77 #9EBB6D #6DBBB1
split-complementary
#8A6DBB #BBB16D #77BB6D
monochromatic
#4F3776 #6A4BA0 #8A6DBB #AB97CE #CDC1E2

Accessibility & contrast

On white

4.21
#8A6DBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A6DBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DBB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DBB#FFFFFF#000000##000000
##8A6DBB1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#587BBE
Deuteranopia (green-blind)
#5E7BB9
Tritanopia (blue-blind)
#817A8B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6dbb;
/* rgb */ color: rgb(138, 109, 187);
/* oklch */ color: oklch(59.5% 0.119 299.9);
Tailwind
colors: {
  custom: {
    50: '#ae97d0',
    500: '#8a6dbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dbb;
$custom-light: #ae97d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dbb",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 187
  },
  "hsl": {
    "h": 262.308,
    "s": 36.449,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.11921,
    "h": 299.9
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#8A6DBB
secondary
#C6D1B2
accent
#CC5BA2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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