#8A37A2#8A37A2

#8A37A2 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.177 H 317.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A37A2
RGBrgb(138, 55, 162)
HSLhsl(287, 49%, 43%)
HSVhsv(287, 66%, 64%)
CMYKcmyk(14.8%, 66%, 0%, 36.5%)
CIE-LABlab(39.15, 51.37, -42.29)
CIE-LCHlch(39.15, 66.54, 320.54°)
OKLaboklab(49.77% 0.1309 -0.1184)
OKLCHoklch(49.77% 0.177 317.8)
XYZxyz(18.3681, 10.7451, 35.2819)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37A2 #4FA237
analogous
#5437A2 #8A37A2 #A23785
triadic
#8A37A2 #A28A37 #37A28A
tetradic
#8A37A2 #A25437 #4FA237 #3785A2
square
#8A37A2 #A25437 #4FA237 #3785A2
split-complementary
#8A37A2 #85A237 #37A254
monochromatic
#3C1847 #632774 #8A37A2 #AB52C4 #C180D4

Accessibility & contrast

On white

6.67
#8A37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A37A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37A2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37A2#FFFFFF#000000##FFFFFF
##8A37A21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F57A5
Deuteranopia (green-blind)
#3B5F9F
Tritanopia (blue-blind)
#894A68
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a37a2;
/* rgb */ color: rgb(138, 55, 162);
/* oklch */ color: oklch(49.8% 0.177 317.8);
Tailwind
colors: {
  custom: {
    50: '#af74be',
    500: '#8a37a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a37a2;
$custom-light: #af74be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37a2",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 286.542,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.17651,
    "h": 317.8
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#8A37A2
secondary
#87BD78
accent
#D94F6E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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