#8A3DB4#8A3DB4

#8A3DB4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.7% C 0.186 H 311.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB4
RGBrgb(138, 61, 180)
HSLhsl(279, 49%, 47%)
HSVhsv(279, 66%, 71%)
CMYKcmyk(23.3%, 66.1%, 0%, 29.4%)
CIE-LABlab(41.27, 52.43, -49.58)
CIE-LCHlch(41.27, 72.16, 316.60°)
OKLaboklab(51.66% 0.123 -0.1399)
OKLCHoklch(51.66% 0.186 311.3)
XYZxyz(20.3867, 12.0365, 44.4205)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB4 #67B43D
analogous
#4F3DB4 #8A3DB4 #B43DA2
triadic
#8A3DB4 #B48A3D #3DB48A
tetradic
#8A3DB4 #B44F3D #67B43D #3DA2B4
square
#8A3DB4 #B44F3D #67B43D #3DA2B4
split-complementary
#8A3DB4 #A2B43D #3DB44F
monochromatic
#441E59 #672E86 #8A3DB4 #A664CA #C092DA

Accessibility & contrast

On white

6.16
#8A3DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A3DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB4#FFFFFF#000000##FFFFFF
##8A3DB41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#3063B1
Tritanopia (blue-blind)
#855573
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3db4;
/* rgb */ color: rgb(138, 61, 180);
/* oklch */ color: oklch(51.7% 0.186 311.3);
Tailwind
colors: {
  custom: {
    50: '#b078cb',
    500: '#8a3db4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db4;
$custom-light: #b078cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db4",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 278.824,
    "s": 49.378,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.18627,
    "h": 311.3
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#8A3DB4
secondary
#9DC588
accent
#D94F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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