#8A3392#8A3392

#8A3392 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.3% C 0.167 H 324.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A3392
RGBrgb(138, 51, 146)
HSLhsl(295, 48%, 39%)
HSVhsv(295, 65%, 57%)
CMYKcmyk(5.5%, 65.1%, 0%, 42.7%)
CIE-LABlab(37.57, 50.01, -35.13)
CIE-LCHlch(37.57, 61.11, 324.91°)
OKLaboklab(48.32% 0.1356 -0.0975)
OKLCHoklch(48.32% 0.167 324.3)
XYZxyz(16.8529, 9.8472, 28.2016)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3392 #3B9233
analogous
#5A3392 #8A3392 #92336A
triadic
#8A3392 #928A33 #33928A
tetradic
#8A3392 #925A33 #3B9233 #336A92
square
#8A3392 #925A33 #3B9233 #336A92
split-complementary
#8A3392 #6A9233 #33925A
monochromatic
#341337 #5F2365 #8A3392 #B444BE #C672CE

Accessibility & contrast

On white

7.07
#8A3392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A3392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3392
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3392#FFFFFF#000000##FFFFFF
##8A33921.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205295
Deuteranopia (green-blind)
#435C90
Tritanopia (blue-blind)
#8D415E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3392;
/* rgb */ color: rgb(138, 51, 146);
/* oklch */ color: oklch(48.3% 0.167 324.3);
Tailwind
colors: {
  custom: {
    50: '#af71b2',
    500: '#8a3392',
    950: '#000000',
  },
}
SCSS
$custom: #8a3392;
$custom-light: #af71b2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3392",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 146
  },
  "hsl": {
    "h": 294.947,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48321,
    "c": 0.16703,
    "h": 324.3
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#8A3392
secondary
#71B66B
accent
#D8505B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3392

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

Preview Lab → · Contrast checker → · Palette generator →

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