#8A27B5#8A27B5

#8A27B5 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.213 H 312.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A27B5
RGBrgb(138, 39, 181)
HSLhsl(282, 65%, 43%)
HSVhsv(282, 78%, 71%)
CMYKcmyk(23.8%, 78.5%, 0%, 29%)
CIE-LABlab(38.18, 61.58, -55.16)
CIE-LCHlch(38.18, 82.67, 318.15°)
OKLaboklab(49.48% 0.1448 -0.1561)
OKLCHoklch(49.48% 0.213 312.9)
XYZxyz(19.5457, 10.1911, 44.6446)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27B5 #52B527
analogous
#4327B5 #8A27B5 #B52799
triadic
#8A27B5 #B58A27 #27B58A
tetradic
#8A27B5 #B54327 #52B527 #2799B5
square
#8A27B5 #B54327 #52B527 #2799B5
split-complementary
#8A27B5 #99B527 #27B543
monochromatic
#3D1150 #641C83 #8A27B5 #AA43D6 #C175E1

Accessibility & contrast

On white

6.91
#8A27B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A27B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27B5
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27B5#FFFFFF#000000##FFFFFF
##8A27B51.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#115CB2
Tritanopia (blue-blind)
#85496E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a27b5;
/* rgb */ color: rgb(138, 39, 181);
/* oklch */ color: oklch(49.5% 0.213 312.9);
Tailwind
colors: {
  custom: {
    50: '#b16dcc',
    500: '#8a27b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a27b5;
$custom-light: #b16dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27b5",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 181
  },
  "hsl": {
    "h": 281.831,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49482,
    "c": 0.21293,
    "h": 312.9
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#8A27B5
secondary
#8AC96F
accent
#E84073
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27B5

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

Preview Lab → · Contrast checker → · Palette generator →

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