#8A3DB6#8A3DB6

#8A3DB6 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.188 H 310.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB6
RGBrgb(138, 61, 182)
HSLhsl(278, 50%, 48%)
HSVhsv(278, 66%, 71%)
CMYKcmyk(24.2%, 66.5%, 0%, 28.6%)
CIE-LABlab(41.40, 52.87, -50.55)
CIE-LCHlch(41.40, 73.15, 316.28°)
OKLaboklab(51.79% 0.1229 -0.1427)
OKLCHoklch(51.79% 0.188 310.7)
XYZxyz(20.5919, 12.1186, 45.5013)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB6 #69B63D
analogous
#4E3DB6 #8A3DB6 #B63DA5
triadic
#8A3DB6 #B68A3D #3DB68A
tetradic
#8A3DB6 #B64E3D #69B63D #3DA5B6
square
#8A3DB6 #B64E3D #69B63D #3DA5B6
split-complementary
#8A3DB6 #A5B63D #3DB64E
monochromatic
#441E5A #672E88 #8A3DB6 #A665CB #C193DB

Accessibility & contrast

On white

6.13
#8A3DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A3DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB6#FFFFFF#000000##FFFFFF
##8A3DB61.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#2E63B3
Tritanopia (blue-blind)
#845674
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3db6;
/* rgb */ color: rgb(138, 61, 182);
/* oklch */ color: oklch(51.8% 0.188 310.7);
Tailwind
colors: {
  custom: {
    50: '#b078cd',
    500: '#8a3db6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db6;
$custom-light: #b078cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db6",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 182
  },
  "hsl": {
    "h": 278.182,
    "s": 49.794,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51794,
    "c": 0.18832,
    "h": 310.7
  },
  "luminance": 0.12118
}

Semantic roles & 50–950 ramp

primary
#8A3DB6
secondary
#9FC689
accent
#D94E81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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