#8A37A1#8A37A1

#8A37A1 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.7% C 0.176 H 318.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8A37A1
RGBrgb(138, 55, 161)
HSLhsl(287, 49%, 42%)
HSVhsv(287, 66%, 63%)
CMYKcmyk(14.3%, 65.8%, 0%, 36.9%)
CIE-LABlab(39.09, 51.17, -41.79)
CIE-LCHlch(39.09, 66.06, 320.76°)
OKLaboklab(49.7% 0.1309 -0.117)
OKLCHoklch(49.7% 0.176 318.2)
XYZxyz(18.2796, 10.7096, 34.8156)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37A1 #4EA137
analogous
#5537A1 #8A37A1 #A13783
triadic
#8A37A1 #A18A37 #37A18A
tetradic
#8A37A1 #A15537 #4EA137 #3783A1
square
#8A37A1 #A15537 #4EA137 #3783A1
split-complementary
#8A37A1 #83A137 #37A155
monochromatic
#3C1846 #632773 #8A37A1 #AB51C4 #C17FD3

Accessibility & contrast

On white

6.68
#8A37A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A37A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37A1
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37A1#FFFFFF#000000##FFFFFF
##8A37A11.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#3C5F9E
Tritanopia (blue-blind)
#8A4A67
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a37a1;
/* rgb */ color: rgb(138, 55, 161);
/* oklch */ color: oklch(49.7% 0.176 318.2);
Tailwind
colors: {
  custom: {
    50: '#af74bd',
    500: '#8a37a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a37a1;
$custom-light: #af74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37a1",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 286.981,
    "s": 49.074,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.17554,
    "h": 318.2
  },
  "luminance": 0.10709
}

Semantic roles & 50–950 ramp

primary
#8A37A1
secondary
#86BD77
accent
#D94F6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A37A1

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

Preview Lab → · Contrast checker → · Palette generator →

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