#8A27B0#8A27B0

#8A27B0 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.208 H 314.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8A27B0
RGBrgb(138, 39, 176)
HSLhsl(283, 64%, 42%)
HSVhsv(283, 78%, 69%)
CMYKcmyk(21.6%, 77.8%, 0%, 31%)
CIE-LABlab(37.82, 60.57, -52.78)
CIE-LCHlch(37.82, 80.34, 318.93°)
OKLaboklab(49.12% 0.1457 -0.1491)
OKLCHoklch(49.12% 0.208 314.3)
XYZxyz(19.0419, 9.9896, 41.9910)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27B0 #4DB027
analogous
#4627B0 #8A27B0 #B02791
triadic
#8A27B0 #B08A27 #27B08A
tetradic
#8A27B0 #B04627 #4DB027 #2791B0
square
#8A27B0 #B04627 #4DB027 #2791B0
split-complementary
#8A27B0 #91B027 #27B046
monochromatic
#3B114C #631C7E #8A27B0 #AB40D5 #C172E0

Accessibility & contrast

On white

7.01
#8A27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A27B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27B0
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27B0#FFFFFF#000000##FFFFFF
##8A27B01.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#1C5BAD
Tritanopia (blue-blind)
#86476B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a27b0;
/* rgb */ color: rgb(138, 39, 176);
/* oklch */ color: oklch(49.1% 0.208 314.3);
Tailwind
colors: {
  custom: {
    50: '#b16dc8',
    500: '#8a27b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a27b0;
$custom-light: #b16dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27b0",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 283.358,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49116,
    "c": 0.20848,
    "h": 314.3
  },
  "luminance": 0.09989
}

Semantic roles & 50–950 ramp

primary
#8A27B0
secondary
#85C76C
accent
#E7416F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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