#8A27A1#8A27A1

#8A27A1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.195 H 319.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A27A1
RGBrgb(138, 39, 161)
HSLhsl(289, 61%, 39%)
HSVhsv(289, 76%, 63%)
CMYKcmyk(14.3%, 75.8%, 0%, 36.9%)
CIE-LABlab(36.80, 57.63, -45.45)
CIE-LCHlch(36.80, 73.40, 321.74°)
OKLaboklab(48.06% 0.1479 -0.1276)
OKLCHoklch(48.06% 0.195 319.2)
XYZxyz(17.6389, 9.4284, 34.6021)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A1 #3EA127
analogous
#4D27A1 #8A27A1 #A1277B
triadic
#8A27A1 #A18A27 #27A18A
tetradic
#8A27A1 #A14D27 #3EA127 #277BA1
square
#8A27A1 #A14D27 #3EA127 #277BA1
split-complementary
#8A27A1 #7BA127 #27A14D
monochromatic
#360F3E #601B70 #8A27A1 #B237CE #C568DA

Accessibility & contrast

On white

7.28
#8A27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A1#FFFFFF#000000##FFFFFF
##8A27A11.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#305A9E
Tritanopia (blue-blind)
#8A4063
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a27a1;
/* rgb */ color: rgb(138, 39, 161);
/* oklch */ color: oklch(48.1% 0.195 319.2);
Tailwind
colors: {
  custom: {
    50: '#b06cbd',
    500: '#8a27a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a1;
$custom-light: #b06cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a1",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 288.689,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48064,
    "c": 0.19531,
    "h": 319.2
  },
  "luminance": 0.09428
}

Semantic roles & 50–950 ramp

primary
#8A27A1
secondary
#75C063
accent
#E44462
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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