#8A27A9#8A27A9

#8A27A9 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.202 H 316.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8A27A9
RGBrgb(138, 39, 169)
HSLhsl(286, 63%, 41%)
HSVhsv(286, 77%, 66%)
CMYKcmyk(18.3%, 76.9%, 0%, 33.7%)
CIE-LABlab(37.33, 59.18, -49.39)
CIE-LCHlch(37.33, 77.08, 320.15°)
OKLaboklab(48.62% 0.1469 -0.1391)
OKLCHoklch(48.62% 0.202 316.5)
XYZxyz(18.3671, 9.7196, 38.4370)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27A9 #46A927
analogous
#4927A9 #8A27A9 #A92787
triadic
#8A27A9 #A98A27 #27A98A
tetradic
#8A27A9 #A94927 #46A927 #2787A9
square
#8A27A9 #A94927 #46A927 #2787A9
split-complementary
#8A27A9 #87A927 #27A949
monochromatic
#391046 #611C77 #8A27A9 #AE3BD2 #C36DDD

Accessibility & contrast

On white

7.13
#8A27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A27A9
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27A9#FFFFFF#000000##FFFFFF
##8A27A91.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#275BA6
Tritanopia (blue-blind)
#884467
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a27a9;
/* rgb */ color: rgb(138, 39, 169);
/* oklch */ color: oklch(48.6% 0.202 316.5);
Tailwind
colors: {
  custom: {
    50: '#b06cc3',
    500: '#8a27a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a27a9;
$custom-light: #b06cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27a9",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 285.692,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.20231,
    "h": 316.5
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

primary
#8A27A9
secondary
#7EC468
accent
#E64269
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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