#8A27A6#8A27A6

#8A27A6 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.200 H 317.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A27A6
RGBrgb(138, 39, 166)
HSLhsl(287, 62%, 40%)
HSVhsv(287, 77%, 65%)
CMYKcmyk(16.9%, 76.5%, 0%, 34.9%)
CIE-LABlab(37.13, 58.59, -47.92)
CIE-LCHlch(37.13, 75.70, 320.72°)
OKLaboklab(48.41% 0.1473 -0.1348)
OKLCHoklch(48.41% 0.2 317.5)
XYZxyz(18.0887, 9.6083, 36.9708)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A6 #43A627
analogous
#4B27A6 #8A27A6 #A62782
triadic
#8A27A6 #A68A27 #27A68A
tetradic
#8A27A6 #A64B27 #43A627 #2782A6
square
#8A27A6 #A64B27 #43A627 #2782A6
split-complementary
#8A27A6 #82A627 #27A64B
monochromatic
#381043 #611B74 #8A27A6 #AF3AD1 #C36BDC

Accessibility & contrast

On white

7.19
#8A27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A27A6
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A6#FFFFFF#000000##FFFFFF
##8A27A61.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#2B5AA3
Tritanopia (blue-blind)
#894265
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a27a6;
/* rgb */ color: rgb(138, 39, 166);
/* oklch */ color: oklch(48.4% 0.200 317.5);
Tailwind
colors: {
  custom: {
    50: '#b06cc1',
    500: '#8a27a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a6;
$custom-light: #b06cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a6",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 286.772,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48406,
    "c": 0.19967,
    "h": 317.5
  },
  "luminance": 0.09607
}

Semantic roles & 50–950 ramp

primary
#8A27A6
secondary
#7BC366
accent
#E54367
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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