#8A27A8#8A27A8

#8A27A8 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 316.9°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A27A8
RGBrgb(138, 39, 168)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 77%, 66%)
CMYKcmyk(17.9%, 76.8%, 0%, 34.1%)
CIE-LABlab(37.27, 58.98, -48.91)
CIE-LCHlch(37.27, 76.62, 320.34°)
OKLaboklab(48.55% 0.147 -0.1377)
OKLCHoklch(48.55% 0.201 316.9)
XYZxyz(18.2736, 9.6822, 37.9445)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A8 #45A827
analogous
#4A27A8 #8A27A8 #A82785
triadic
#8A27A8 #A88A27 #27A88A
tetradic
#8A27A8 #A84A27 #45A827 #2785A8
square
#8A27A8 #A84A27 #45A827 #2785A8
split-complementary
#8A27A8 #85A827 #27A84A
monochromatic
#381045 #611B76 #8A27A8 #AE3BD1 #C36CDD

Accessibility & contrast

On white

7.15
#8A27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A8#FFFFFF#000000##FFFFFF
##8A27A81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#285AA5
Tritanopia (blue-blind)
#884366
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a27a8;
/* rgb */ color: rgb(138, 39, 168);
/* oklch */ color: oklch(48.5% 0.201 316.9);
Tailwind
colors: {
  custom: {
    50: '#b06cc3',
    500: '#8a27a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a8;
$custom-light: #b06cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a8",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 286.047,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.20143,
    "h": 316.9
  },
  "luminance": 0.09681
}

Semantic roles & 50–950 ramp

primary
#8A27A8
secondary
#7DC367
accent
#E54268
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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