#8A27A4#8A27A4

#8A27A4 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.3% C 0.198 H 318.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A27A4
RGBrgb(138, 39, 164)
HSLhsl(288, 62%, 40%)
HSVhsv(288, 76%, 64%)
CMYKcmyk(15.9%, 76.2%, 0%, 35.7%)
CIE-LABlab(37.00, 58.21, -46.94)
CIE-LCHlch(37.00, 74.78, 321.12°)
OKLaboklab(48.27% 0.1475 -0.132)
OKLCHoklch(48.27% 0.198 318.2)
XYZxyz(17.9067, 9.5355, 36.0121)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A4 #41A427
analogous
#4C27A4 #8A27A4 #A42780
triadic
#8A27A4 #A48A27 #27A48A
tetradic
#8A27A4 #A44C27 #41A427 #2780A4
square
#8A27A4 #A44C27 #41A427 #2780A4
split-complementary
#8A27A4 #80A427 #27A44C
monochromatic
#370F41 #601B73 #8A27A4 #B038D0 #C46ADC

Accessibility & contrast

On white

7.22
#8A27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A4#FFFFFF#000000##FFFFFF
##8A27A41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#894264
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a27a4;
/* rgb */ color: rgb(138, 39, 164);
/* oklch */ color: oklch(48.3% 0.198 318.2);
Tailwind
colors: {
  custom: {
    50: '#b06cc0',
    500: '#8a27a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a4;
$custom-light: #b06cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a4",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 287.52,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.19793,
    "h": 318.2
  },
  "luminance": 0.09535
}

Semantic roles & 50–950 ramp

primary
#8A27A4
secondary
#78C265
accent
#E54365
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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