#8A3399#8A3399

#8A3399 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.7% C 0.173 H 321.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A3399
RGBrgb(138, 51, 153)
HSLhsl(291, 50%, 40%)
HSVhsv(291, 67%, 60%)
CMYKcmyk(9.8%, 66.7%, 0%, 40%)
CIE-LABlab(37.97, 51.35, -38.74)
CIE-LCHlch(37.97, 64.33, 322.97°)
OKLaboklab(48.74% 0.1357 -0.1081)
OKLCHoklch(48.74% 0.173 321.5)
XYZxyz(17.4142, 10.0717, 31.1576)
Luminance0.1007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3399 #429933
analogous
#573399 #8A3399 #993375
triadic
#8A3399 #998A33 #33998A
tetradic
#8A3399 #995733 #429933 #337599
square
#8A3399 #995733 #429933 #337599
split-complementary
#8A3399 #759933 #339957
monochromatic
#37143D #61246B #8A3399 #B047C2 #C475D1

Accessibility & contrast

On white

6.97
#8A3399 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A3399 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3399
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3399#FFFFFF#000000##FFFFFF
##8A33991.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16539C
Deuteranopia (green-blind)
#3F5D96
Tritanopia (blue-blind)
#8B4462
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3399;
/* rgb */ color: rgb(138, 51, 153);
/* oklch */ color: oklch(48.7% 0.173 321.5);
Tailwind
colors: {
  custom: {
    50: '#af72b7',
    500: '#8a3399',
    950: '#000000',
  },
}
SCSS
$custom: #8a3399;
$custom-light: #af72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3399",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 291.176,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.48744,
    "c": 0.17347,
    "h": 321.5
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#8A3399
secondary
#79B96E
accent
#DA4E63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3399

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

Preview Lab → · Contrast checker → · Palette generator →

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