#8A3BB1#8A3BB1

#8A3BB1 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.2% C 0.186 H 312.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8A3BB1
RGBrgb(138, 59, 177)
HSLhsl(280, 50%, 46%)
HSVhsv(280, 67%, 69%)
CMYKcmyk(22%, 66.7%, 0%, 30.6%)
CIE-LABlab(40.75, 52.70, -48.66)
CIE-LCHlch(40.75, 71.73, 317.28°)
OKLaboklab(51.22% 0.1255 -0.1371)
OKLCHoklch(51.22% 0.186 312.5)
XYZxyz(19.9796, 11.7061, 42.7935)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BB1 #62B13B
analogous
#4F3BB1 #8A3BB1 #B13B9D
triadic
#8A3BB1 #B18A3B #3BB18A
tetradic
#8A3BB1 #B14F3B #62B13B #3B9DB1
square
#8A3BB1 #B14F3B #62B13B #3B9DB1
split-complementary
#8A3BB1 #9DB13B #3BB14F
monochromatic
#421C55 #662C83 #8A3BB1 #A75FCA #C08DD9

Accessibility & contrast

On white

6.29
#8A3BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A3BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BB1
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BB1#FFFFFF#000000##FFFFFF
##8A3BB11.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#3162AE
Tritanopia (blue-blind)
#865371
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3bb1;
/* rgb */ color: rgb(138, 59, 177);
/* oklch */ color: oklch(51.2% 0.186 312.5);
Tailwind
colors: {
  custom: {
    50: '#b077c9',
    500: '#8a3bb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bb1;
$custom-light: #b077c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bb1",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 280.169,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51217,
    "c": 0.18592,
    "h": 312.5
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#8A3BB1
secondary
#99C484
accent
#DA4E7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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