#8A37A6#8A37A6

#8A37A6 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.0% C 0.180 H 316.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A37A6
RGBrgb(138, 55, 166)
HSLhsl(285, 50%, 43%)
HSVhsv(285, 67%, 65%)
CMYKcmyk(16.9%, 66.9%, 0%, 34.9%)
CIE-LABlab(39.39, 52.19, -44.29)
CIE-LCHlch(39.39, 68.45, 319.68°)
OKLaboklab(50.02% 0.1307 -0.1243)
OKLCHoklch(50.02% 0.18 316.4)
XYZxyz(18.7293, 10.8895, 37.1843)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37A6 #53A637
analogous
#5237A6 #8A37A6 #A6378A
triadic
#8A37A6 #A68A37 #37A68A
tetradic
#8A37A6 #A65237 #53A637 #378AA6
square
#8A37A6 #A65237 #53A637 #378AA6
split-complementary
#8A37A6 #8AA637 #37A652
monochromatic
#3E194A #642878 #8A37A6 #A954C6 #C082D6

Accessibility & contrast

On white

6.61
#8A37A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A37A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37A6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37A6#FFFFFF#000000##FFFFFF
##8A37A61.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#385FA3
Tritanopia (blue-blind)
#884C6A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a37a6;
/* rgb */ color: rgb(138, 55, 166);
/* oklch */ color: oklch(50.0% 0.180 316.4);
Tailwind
colors: {
  custom: {
    50: '#af74c1',
    500: '#8a37a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a37a6;
$custom-light: #af74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37a6",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 284.865,
    "s": 50.226,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50022,
    "c": 0.18039,
    "h": 316.4
  },
  "luminance": 0.10889
}

Semantic roles & 50–950 ramp

primary
#8A37A6
secondary
#8BBF7A
accent
#DA4E71
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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