#8A27B1#8A27B1

#8A27B1 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.209 H 314.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8A27B1
RGBrgb(138, 39, 177)
HSLhsl(283, 64%, 42%)
HSVhsv(283, 78%, 69%)
CMYKcmyk(22%, 78%, 0%, 30.6%)
CIE-LABlab(37.90, 60.77, -53.26)
CIE-LCHlch(37.90, 80.80, 318.77°)
OKLaboklab(49.19% 0.1456 -0.1505)
OKLCHoklch(49.19% 0.209 314)
XYZxyz(19.1412, 10.0293, 42.5140)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27B1 #4EB127
analogous
#4527B1 #8A27B1 #B12793
triadic
#8A27B1 #B18A27 #27B18A
tetradic
#8A27B1 #B14527 #4EB127 #2793B1
square
#8A27B1 #B14527 #4EB127 #2793B1
split-complementary
#8A27B1 #93B127 #27B145
monochromatic
#3C114D #631C7F #8A27B1 #AB40D5 #C172E0

Accessibility & contrast

On white

6.99
#8A27B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A27B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27B1
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27B1#FFFFFF#000000##FFFFFF
##8A27B11.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#1A5BAE
Tritanopia (blue-blind)
#86476C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a27b1;
/* rgb */ color: rgb(138, 39, 177);
/* oklch */ color: oklch(49.2% 0.209 314.0);
Tailwind
colors: {
  custom: {
    50: '#b16dc9',
    500: '#8a27b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a27b1;
$custom-light: #b16dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27b1",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 283.043,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.20938,
    "h": 314
  },
  "luminance": 0.10029
}

Semantic roles & 50–950 ramp

primary
#8A27B1
secondary
#86C76D
accent
#E74170
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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