#8A27A0#8A27A0

#8A27A0 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.194 H 319.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A27A0
RGBrgb(138, 39, 160)
HSLhsl(289, 61%, 39%)
HSVhsv(289, 76%, 63%)
CMYKcmyk(13.8%, 75.6%, 0%, 37.3%)
CIE-LABlab(36.73, 57.44, -44.96)
CIE-LCHlch(36.73, 72.94, 321.95°)
OKLaboklab(48% 0.148 -0.1262)
OKLCHoklch(48% 0.194 319.6)
XYZxyz(17.5511, 9.3933, 34.1395)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A0 #3DA027
analogous
#4E27A0 #8A27A0 #A0277A
triadic
#8A27A0 #A08A27 #27A08A
tetradic
#8A27A0 #A04E27 #3DA027 #277AA0
square
#8A27A0 #A04E27 #3DA027 #277AA0
split-complementary
#8A27A0 #7AA027 #27A04E
monochromatic
#350F3E #601B6F #8A27A0 #B236CE #C567DA

Accessibility & contrast

On white

7.30
#8A27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A0
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A0#FFFFFF#000000##FFFFFF
##8A27A01.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#315A9D
Tritanopia (blue-blind)
#8A4062
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a27a0;
/* rgb */ color: rgb(138, 39, 160);
/* oklch */ color: oklch(48.0% 0.194 319.6);
Tailwind
colors: {
  custom: {
    50: '#b06cbd',
    500: '#8a27a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a0;
$custom-light: #b06cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a0",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 289.091,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47996,
    "c": 0.19445,
    "h": 319.6
  },
  "luminance": 0.09392
}

Semantic roles & 50–950 ramp

primary
#8A27A0
secondary
#74C063
accent
#E44461
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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