#8A37B2#8A37B2

#8A37B2 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.8% C 0.192 H 312.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A37B2
RGBrgb(138, 55, 178)
HSLhsl(280, 53%, 46%)
HSVhsv(280, 69%, 70%)
CMYKcmyk(22.5%, 69.1%, 0%, 30.2%)
CIE-LABlab(40.16, 54.72, -50.19)
CIE-LCHlch(40.16, 74.25, 317.47°)
OKLaboklab(50.82% 0.1299 -0.1416)
OKLCHoklch(50.82% 0.192 312.5)
XYZxyz(19.8819, 11.3506, 43.2544)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A37B2 #5FB237
analogous
#4C37B2 #8A37B2 #B2379C
triadic
#8A37B2 #B28A37 #37B28A
tetradic
#8A37B2 #B24C37 #5FB237 #379CB2
square
#8A37B2 #B24C37 #5FB237 #379CB2
split-complementary
#8A37B2 #9CB237 #37B24C
monochromatic
#421A54 #662983 #8A37B2 #A75ACC #C089DB

Accessibility & contrast

On white

6.42
#8A37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A37B2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A37B2#FFFFFF#000000##FFFFFF
##8A37B21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2C60AF
Tritanopia (blue-blind)
#865170
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a37b2;
/* rgb */ color: rgb(138, 55, 178);
/* oklch */ color: oklch(50.8% 0.192 312.5);
Tailwind
colors: {
  custom: {
    50: '#b075ca',
    500: '#8a37b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a37b2;
$custom-light: #b075ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a37b2",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 280.488,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50821,
    "c": 0.19216,
    "h": 312.5
  },
  "luminance": 0.1135
}

Semantic roles & 50–950 ramp

primary
#8A37B2
secondary
#96C580
accent
#DC4C7B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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