#8A3795#8A3795

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

Color values

HEX#8A3795
RGBrgb(138, 55, 149)
HSLhsl(293, 46%, 40%)
HSVhsv(293, 63%, 58%)
CMYKcmyk(7.4%, 63.1%, 0%, 41.6%)
CIE-LABlab(38.39, 48.78, -35.66)
CIE-LCHlch(38.39, 60.42, 323.84°)
OKLaboklab(48.97% 0.1308 -0.0991)
OKLCHoklch(48.97% 0.164 322.8)
XYZxyz(17.2717, 10.3065, 29.5075)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3795 #429537
analogous
#5B3795 #8A3795 #953771
triadic
#8A3795 #958A37 #37958A
tetradic
#8A3795 #955B37 #429537 #377195
square
#8A3795 #955B37 #429537 #377195
split-complementary
#8A3795 #719537 #37955B
monochromatic
#37163C #612768 #8A3795 #B04CBD #C479CD

Accessibility & contrast

On white

6.86
#8A3795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A3795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3795
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3795#FFFFFF#000000##FFFFFF
##8A37951.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245498
Deuteranopia (green-blind)
#445E93
Tritanopia (blue-blind)
#8C4561
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a3795;
/* rgb */ color: rgb(138, 55, 149);
/* oklch */ color: oklch(49.0% 0.164 322.8);
Tailwind
colors: {
  custom: {
    50: '#af74b4',
    500: '#8a3795',
    950: '#000000',
  },
}
SCSS
$custom: #8a3795;
$custom-light: #af74b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3795",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 292.979,
    "s": 46.078,
    "l": 40
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.16407,
    "h": 322.8
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#8A3795
secondary
#79B671
accent
#D65261
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3795

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

Preview Lab → · Contrast checker → · Palette generator →

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