#8A3DB1#8A3DB1

#8A3DB1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.183 H 312.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB1
RGBrgb(138, 61, 177)
HSLhsl(280, 49%, 47%)
HSVhsv(280, 66%, 69%)
CMYKcmyk(22%, 65.5%, 0%, 30.6%)
CIE-LABlab(41.08, 51.77, -48.12)
CIE-LCHlch(41.08, 70.68, 317.09°)
OKLaboklab(51.46% 0.1232 -0.1356)
OKLCHoklch(51.46% 0.183 312.3)
XYZxyz(20.0844, 11.9156, 42.8284)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB1 #64B13D
analogous
#503DB1 #8A3DB1 #B13D9E
triadic
#8A3DB1 #B18A3D #3DB18A
tetradic
#8A3DB1 #B1503D #64B13D #3D9EB1
square
#8A3DB1 #B1503D #64B13D #3D9EB1
split-complementary
#8A3DB1 #9EB13D #3DB150
monochromatic
#431E56 #672D83 #8A3DB1 #A662C9 #C090D9

Accessibility & contrast

On white

6.21
#8A3DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A3DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB1
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB1#FFFFFF#000000##FFFFFF
##8A3DB11.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#3362AE
Tritanopia (blue-blind)
#865472
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3db1;
/* rgb */ color: rgb(138, 61, 177);
/* oklch */ color: oklch(51.5% 0.183 312.3);
Tailwind
colors: {
  custom: {
    50: '#b078c9',
    500: '#8a3db1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db1;
$custom-light: #b078c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db1",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 279.828,
    "s": 48.739,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51459,
    "c": 0.18319,
    "h": 312.3
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#8A3DB1
secondary
#9BC486
accent
#D8507D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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