#8A3796#8A3796

#8A3796 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.0% C 0.165 H 322.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8A3796
RGBrgb(138, 55, 150)
HSLhsl(292, 46%, 40%)
HSVhsv(292, 63%, 59%)
CMYKcmyk(8%, 63.3%, 0%, 41.2%)
CIE-LABlab(38.44, 48.97, -36.17)
CIE-LCHlch(38.44, 60.88, 323.55°)
OKLaboklab(49.03% 0.1308 -0.1006)
OKLCHoklch(49.03% 0.165 322.4)
XYZxyz(17.3519, 10.3386, 29.9298)
Luminance0.1034 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3796 #439637
analogous
#5A3796 #8A3796 #963772
triadic
#8A3796 #968A37 #37968A
tetradic
#8A3796 #965A37 #439637 #377296
square
#8A3796 #965A37 #439637 #377296
split-complementary
#8A3796 #729637 #37965A
monochromatic
#38163C #612769 #8A3796 #AF4DBE #C379CE

Accessibility & contrast

On white

6.85
#8A3796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A3796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3796
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3796#FFFFFF#000000##FFFFFF
##8A37961.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235499
Deuteranopia (green-blind)
#435E94
Tritanopia (blue-blind)
#8C4661
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a3796;
/* rgb */ color: rgb(138, 55, 150);
/* oklch */ color: oklch(49.0% 0.165 322.4);
Tailwind
colors: {
  custom: {
    50: '#af74b5',
    500: '#8a3796',
    950: '#000000',
  },
}
SCSS
$custom: #8a3796;
$custom-light: #af74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3796",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 292.421,
    "s": 46.341,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49029,
    "c": 0.16501,
    "h": 322.4
  },
  "luminance": 0.10338
}

Semantic roles & 50–950 ramp

primary
#8A3796
secondary
#7BB772
accent
#D65263
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3796

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

Preview Lab → · Contrast checker → · Palette generator →

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