#8A3F84#8A3F84

#8A3F84 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.1% C 0.136 H 330.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8A3F84
RGBrgb(138, 63, 132)
HSLhsl(305, 37%, 39%)
HSVhsv(305, 54%, 54%)
CMYKcmyk(0%, 54.3%, 4.3%, 45.9%)
CIE-LABlab(38.94, 41.67, -24.40)
CIE-LCHlch(38.94, 48.29, 329.65°)
OKLaboklab(49.09% 0.1181 -0.0667)
OKLCHoklch(49.09% 0.136 330.5)
XYZxyz(16.4235, 10.6253, 23.0112)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F84 #3F8A45
analogous
#6B3F8A #8A3F84 #8A3F5F
triadic
#8A3F84 #848A3F #3F848A
tetradic
#8A3F84 #8A6B3F #3F8A45 #3F5F8A
square
#8A3F84 #8A6B3F #3F8A45 #3F5F8A
split-complementary
#8A3F84 #5F8A3F #3F8A6B
monochromatic
#361934 #602C5C #8A3F84 #B155AA #C57FBF

Accessibility & contrast

On white

6.72
#8A3F84 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A3F84 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F84
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F84#FFFFFF#000000##FFFFFF
##8A3F841.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5586
Deuteranopia (green-blind)
#525F82
Tritanopia (blue-blind)
#8F465B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a3f84;
/* rgb */ color: rgb(138, 63, 132);
/* oklch */ color: oklch(49.1% 0.136 330.5);
Tailwind
colors: {
  custom: {
    50: '#ae78a8',
    500: '#8a3f84',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f84;
$custom-light: #ae78a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f84",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 132
  },
  "hsl": {
    "h": 304.8,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49091,
    "c": 0.1356,
    "h": 330.5
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#8A3F84
secondary
#76AF7B
accent
#CD645B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#11090F
muted
#807B7F

Preview Lab

Preview with #8A3F84

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

Preview Lab → · Contrast checker → · Palette generator →

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