#8A6DB2#8A6DB2

#8A6DB2 is a mid, moderate violet. Relative luminance 0.196; OKLCH L 59.1% C 0.107 H 302.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A6DB2
RGBrgb(138, 109, 178)
HSLhsl(265, 31%, 56%)
HSVhsv(265, 39%, 70%)
CMYKcmyk(22.5%, 38.8%, 0%, 30.2%)
CIE-LABlab(51.33, 25.74, -32.47)
CIE-LCHlch(51.33, 41.44, 308.41°)
OKLaboklab(59.07% 0.0577 -0.0902)
OKLCHoklch(59.07% 0.107 302.6)
XYZxyz(23.9840, 19.5549, 44.6218)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DB2 #95B26D
analogous
#6D73B2 #8A6DB2 #AD6DB2
triadic
#8A6DB2 #B28A6D #6DB28A
tetradic
#8A6DB2 #B26D73 #95B26D #6DB2AD
square
#8A6DB2 #B26D73 #95B26D #6DB2AD
split-complementary
#8A6DB2 #B2AD6D #73B26D
monochromatic
#4E396C #6B4E94 #8A6DB2 #AA95C7 #CABDDC

Accessibility & contrast

On white

4.28
#8A6DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8A6DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DB2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DB2#FFFFFF#000000##000000
##8A6DB21.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7AB5
Deuteranopia (green-blind)
#637AB0
Tritanopia (blue-blind)
#837887
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a6db2;
/* rgb */ color: rgb(138, 109, 178);
/* oklch */ color: oklch(59.1% 0.107 302.6);
Tailwind
colors: {
  custom: {
    50: '#ad97c9',
    500: '#8a6db2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6db2;
$custom-light: #ad97c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6db2",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 265.217,
    "s": 30.942,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5907,
    "c": 0.10707,
    "h": 302.6
  },
  "luminance": 0.19555
}

Semantic roles & 50–950 ramp

primary
#8A6DB2
secondary
#C0CCAF
accent
#C7619C
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A6DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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