#8A37B1#8A37B1

#8A37B1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.191 H 312.8°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8A37B1
RGBrgb(138, 55, 177)
HSLhsl(281, 53%, 45%)
HSVhsv(281, 69%, 69%)
CMYKcmyk(22%, 68.9%, 0%, 30.6%)
CIE-LABlab(40.10, 54.51, -49.70)
CIE-LCHlch(40.10, 73.76, 317.64°)
OKLaboklab(50.75% 0.13 -0.1402)
OKLCHoklch(50.75% 0.191 312.8)
XYZxyz(19.7818, 11.3105, 42.7275)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37B1 #5EB137
analogous
#4D37B1 #8A37B1 #B1379B
triadic
#8A37B1 #B18A37 #37B18A
tetradic
#8A37B1 #B14D37 #5EB137 #379BB1
square
#8A37B1 #B14D37 #5EB137 #379BB1
split-complementary
#8A37B1 #9BB137 #37B14D
monochromatic
#411A54 #662882 #8A37B1 #A75ACC #C088DA

Accessibility & contrast

On white

6.44
#8A37B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A37B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37B1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37B1#FFFFFF#000000##FFFFFF
##8A37B11.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2D60AE
Tritanopia (blue-blind)
#865070
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a37b1;
/* rgb */ color: rgb(138, 55, 177);
/* oklch */ color: oklch(50.8% 0.191 312.8);
Tailwind
colors: {
  custom: {
    50: '#b074c9',
    500: '#8a37b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a37b1;
$custom-light: #b074c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37b1",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 280.82,
    "s": 52.586,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50753,
    "c": 0.19118,
    "h": 312.8
  },
  "luminance": 0.1131
}

Semantic roles & 50–950 ramp

primary
#8A37B1
secondary
#96C480
accent
#DC4C7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A37B1

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

Preview Lab → · Contrast checker → · Palette generator →

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