#8A37A4#8A37A4

#8A37A4 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.9% C 0.178 H 317.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A37A4
RGBrgb(138, 55, 164)
HSLhsl(286, 50%, 43%)
HSVhsv(286, 66%, 64%)
CMYKcmyk(15.9%, 66.5%, 0%, 35.7%)
CIE-LABlab(39.27, 51.78, -43.29)
CIE-LCHlch(39.27, 67.49, 320.10°)
OKLaboklab(49.89% 0.1308 -0.1214)
OKLCHoklch(49.89% 0.178 317.1)
XYZxyz(18.5473, 10.8167, 36.2256)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37A4 #51A437
analogous
#5337A4 #8A37A4 #A43787
triadic
#8A37A4 #A48A37 #37A48A
tetradic
#8A37A4 #A45337 #51A437 #3787A4
square
#8A37A4 #A45337 #51A437 #3787A4
split-complementary
#8A37A4 #87A437 #37A453
monochromatic
#3D1848 #632876 #8A37A4 #AA53C5 #C181D5

Accessibility & contrast

On white

6.64
#8A37A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A37A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37A4
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37A4#FFFFFF#000000##FFFFFF
##8A37A41.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0957A7
Deuteranopia (green-blind)
#395FA1
Tritanopia (blue-blind)
#894B69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a37a4;
/* rgb */ color: rgb(138, 55, 164);
/* oklch */ color: oklch(49.9% 0.178 317.1);
Tailwind
colors: {
  custom: {
    50: '#af74bf',
    500: '#8a37a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a37a4;
$custom-light: #af74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37a4",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 285.688,
    "s": 49.772,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49893,
    "c": 0.17845,
    "h": 317.1
  },
  "luminance": 0.10816
}

Semantic roles & 50–950 ramp

primary
#8A37A4
secondary
#89BE79
accent
#D94F70
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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