#8A6CBB#8A6CBB

#8A6CBB is a mid, vivid violet. Relative luminance 0.197; OKLCH L 59.4% C 0.121 H 300.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A6CBB
RGBrgb(138, 108, 187)
HSLhsl(263, 37%, 58%)
HSVhsv(263, 42%, 73%)
CMYKcmyk(26.2%, 42.2%, 0%, 26.7%)
CIE-LABlab(51.51, 28.54, -37.38)
CIE-LCHlch(51.51, 47.03, 307.36°)
OKLaboklab(59.35% 0.0609 -0.1044)
OKLCHoklch(59.35% 0.121 300.3)
XYZxyz(24.8114, 19.7161, 49.5025)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CBB #9DBB6C
analogous
#6C75BB #8A6CBB #B16CBB
triadic
#8A6CBB #BB8A6C #6CBB8A
tetradic
#8A6CBB #BB6C75 #9DBB6C #6CBBB1
square
#8A6CBB #BB6C75 #9DBB6C #6CBBB1
split-complementary
#8A6CBB #BBB16C #75BB6C
monochromatic
#4F3776 #6B4AA0 #8A6CBB #AB96CE #CDC0E2

Accessibility & contrast

On white

4.25
#8A6CBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A6CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CBB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CBB#FFFFFF#000000##000000
##8A6CBB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#577ABE
Deuteranopia (green-blind)
#5D7AB9
Tritanopia (blue-blind)
#817A8A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a6cbb;
/* rgb */ color: rgb(138, 108, 187);
/* oklch */ color: oklch(59.4% 0.121 300.3);
Tailwind
colors: {
  custom: {
    50: '#ae96d0',
    500: '#8a6cbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cbb;
$custom-light: #ae96d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cbb",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 187
  },
  "hsl": {
    "h": 262.785,
    "s": 36.744,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5935,
    "c": 0.12087,
    "h": 300.3
  },
  "luminance": 0.19716
}

Semantic roles & 50–950 ramp

primary
#8A6CBB
secondary
#C5D1B2
accent
#CD5BA2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100D14
muted
#7F7E82

Preview Lab

Preview with #8A6CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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