#8A3D99#8A3D99

#8A3D99 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.0% C 0.159 H 320.8°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A3D99
RGBrgb(138, 61, 153)
HSLhsl(290, 43%, 42%)
HSVhsv(290, 60%, 60%)
CMYKcmyk(9.8%, 60.1%, 0%, 40%)
CIE-LABlab(39.65, 46.72, -36.07)
CIE-LCHlch(39.65, 59.03, 322.33°)
OKLaboklab(49.96% 0.1232 -0.1004)
OKLCHoklch(49.96% 0.159 320.8)
XYZxyz(17.8991, 11.0415, 31.3192)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D99 #4C993D
analogous
#5C3D99 #8A3D99 #993D7A
triadic
#8A3D99 #998A3D #3D998A
tetradic
#8A3D99 #995C3D #4C993D #3D7A99
square
#8A3D99 #995C3D #4C993D #3D7A99
split-complementary
#8A3D99 #7A993D #3D995C
monochromatic
#3B1A41 #632C6D #8A3D99 #AC57BC #C183CE

Accessibility & contrast

On white

6.55
#8A3D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A3D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D99
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D99#FFFFFF#000000##FFFFFF
##8A3D991.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589C
Deuteranopia (green-blind)
#466097
Tritanopia (blue-blind)
#8B4B65
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3d99;
/* rgb */ color: rgb(138, 61, 153);
/* oklch */ color: oklch(50.0% 0.159 320.8);
Tailwind
colors: {
  custom: {
    50: '#af77b7',
    500: '#8a3d99',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d99;
$custom-light: #af77b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d99",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 290.217,
    "s": 42.991,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49961,
    "c": 0.15892,
    "h": 320.8
  },
  "luminance": 0.11041
}

Semantic roles & 50–950 ramp

primary
#8A3D99
secondary
#84B87A
accent
#D3556A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3D99

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

Preview Lab → · Contrast checker → · Palette generator →

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