#8A27A3#8A27A3

#8A27A3 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.197 H 318.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A27A3
RGBrgb(138, 39, 163)
HSLhsl(288, 61%, 40%)
HSVhsv(288, 76%, 64%)
CMYKcmyk(15.3%, 76.1%, 0%, 36.1%)
CIE-LABlab(36.93, 58.01, -46.45)
CIE-LCHlch(36.93, 74.31, 321.32°)
OKLaboklab(48.2% 0.1476 -0.1305)
OKLCHoklch(48.2% 0.197 318.5)
XYZxyz(17.8167, 9.4995, 35.5383)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A3 #40A327
analogous
#4C27A3 #8A27A3 #A3277E
triadic
#8A27A3 #A38A27 #27A38A
tetradic
#8A27A3 #A34C27 #40A327 #277EA3
square
#8A27A3 #A34C27 #40A327 #277EA3
split-complementary
#8A27A3 #7EA327 #27A34C
monochromatic
#360F40 #601B72 #8A27A3 #B138CF #C469DB

Accessibility & contrast

On white

7.24
#8A27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A3#FFFFFF#000000##FFFFFF
##8A27A31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#894164
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a27a3;
/* rgb */ color: rgb(138, 39, 163);
/* oklch */ color: oklch(48.2% 0.197 318.5);
Tailwind
colors: {
  custom: {
    50: '#b06cbf',
    500: '#8a27a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a3;
$custom-light: #b06cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a3",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 287.903,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.482,
    "c": 0.19705,
    "h": 318.5
  },
  "luminance": 0.09499
}

Semantic roles & 50–950 ramp

primary
#8A27A3
secondary
#77C164
accent
#E44364
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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