#8A3DB5#8A3DB5

#8A3DB5 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.187 H 311.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB5
RGBrgb(138, 61, 181)
HSLhsl(279, 50%, 47%)
HSVhsv(279, 66%, 71%)
CMYKcmyk(23.8%, 66.3%, 0%, 29%)
CIE-LABlab(41.34, 52.65, -50.07)
CIE-LCHlch(41.34, 72.66, 316.44°)
OKLaboklab(51.73% 0.123 -0.1413)
OKLCHoklch(51.73% 0.187 311)
XYZxyz(20.4889, 12.0774, 44.9590)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB5 #68B53D
analogous
#4E3DB5 #8A3DB5 #B53DA4
triadic
#8A3DB5 #B58A3D #3DB58A
tetradic
#8A3DB5 #B54E3D #68B53D #3DA4B5
square
#8A3DB5 #B54E3D #68B53D #3DA4B5
split-complementary
#8A3DB5 #A4B53D #3DB54E
monochromatic
#441E59 #672E87 #8A3DB5 #A664CB #C092DA

Accessibility & contrast

On white

6.15
#8A3DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3DB5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB5#FFFFFF#000000##FFFFFF
##8A3DB51.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#2F63B2
Tritanopia (blue-blind)
#855574
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3db5;
/* rgb */ color: rgb(138, 61, 181);
/* oklch */ color: oklch(51.7% 0.187 311.0);
Tailwind
colors: {
  custom: {
    50: '#b078cc',
    500: '#8a3db5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db5;
$custom-light: #b078cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db5",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 278.5,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51726,
    "c": 0.18729,
    "h": 311
  },
  "luminance": 0.12077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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