#8A3AAF#8A3AAF

#8A3AAF is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.185 H 313.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A3AAF
RGBrgb(138, 58, 175)
HSLhsl(281, 50%, 46%)
HSVhsv(281, 67%, 69%)
CMYKcmyk(21.1%, 66.9%, 0%, 31.4%)
CIE-LABlab(40.45, 52.73, -47.95)
CIE-LCHlch(40.45, 71.27, 317.72°)
OKLaboklab(50.96% 0.1268 -0.135)
OKLCHoklch(50.96% 0.185 313.2)
XYZxyz(19.7308, 11.5251, 41.7343)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AAF #5FAF3A
analogous
#4F3AAF #8A3AAF #AF3A99
triadic
#8A3AAF #AF8A3A #3AAF8A
tetradic
#8A3AAF #AF4F3A #5FAF3A #3A99AF
square
#8A3AAF #AF4F3A #5FAF3A #3A99AF
split-complementary
#8A3AAF #99AF3A #3AAF4F
monochromatic
#421C53 #662B81 #8A3AAF #A75DC9 #C08BD9

Accessibility & contrast

On white

6.35
#8A3AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A3AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AAF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AAF#FFFFFF#000000##FFFFFF
##8A3AAF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#3261AC
Tritanopia (blue-blind)
#865170
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3aaf;
/* rgb */ color: rgb(138, 58, 175);
/* oklch */ color: oklch(51.0% 0.185 313.2);
Tailwind
colors: {
  custom: {
    50: '#b076c7',
    500: '#8a3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aaf;
$custom-light: #b076c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aaf",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 281.026,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50964,
    "c": 0.18525,
    "h": 313.2
  },
  "luminance": 0.11525
}

Semantic roles & 50–950 ramp

primary
#8A3AAF
secondary
#96C382
accent
#DA4E7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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