#8A3794#8A3794

#8A3794 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.9% C 0.163 H 323.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A3794
RGBrgb(138, 55, 148)
HSLhsl(294, 46%, 40%)
HSVhsv(294, 63%, 58%)
CMYKcmyk(6.8%, 62.8%, 0%, 42%)
CIE-LABlab(38.33, 48.59, -35.14)
CIE-LCHlch(38.33, 59.96, 324.13°)
OKLaboklab(48.91% 0.1307 -0.0976)
OKLCHoklch(48.91% 0.163 323.3)
XYZxyz(17.1922, 10.2747, 29.0889)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3794 #419437
analogous
#5B3794 #8A3794 #943770
triadic
#8A3794 #948A37 #37948A
tetradic
#8A3794 #945B37 #419437 #377094
square
#8A3794 #945B37 #419437 #377094
split-complementary
#8A3794 #709437 #37945B
monochromatic
#37163B #602667 #8A3794 #B04CBC #C478CD

Accessibility & contrast

On white

6.87
#8A3794 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A3794 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3794
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3794#FFFFFF#000000##FFFFFF
##8A37941.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255497
Deuteranopia (green-blind)
#455E92
Tritanopia (blue-blind)
#8C4560
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a3794;
/* rgb */ color: rgb(138, 55, 148);
/* oklch */ color: oklch(48.9% 0.163 323.3);
Tailwind
colors: {
  custom: {
    50: '#af73b4',
    500: '#8a3794',
    950: '#000000',
  },
}
SCSS
$custom: #8a3794;
$custom-light: #af73b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3794",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 293.548,
    "s": 45.813,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48911,
    "c": 0.16313,
    "h": 323.3
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#8A3794
secondary
#78B671
accent
#D55260
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3794

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

Preview Lab → · Contrast checker → · Palette generator →

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