#8A27B4#8A27B4

#8A27B4 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.212 H 313.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A27B4
RGBrgb(138, 39, 180)
HSLhsl(282, 64%, 43%)
HSVhsv(282, 78%, 71%)
CMYKcmyk(23.3%, 78.3%, 0%, 29.4%)
CIE-LABlab(38.11, 61.38, -54.69)
CIE-LCHlch(38.11, 82.21, 318.30°)
OKLaboklab(49.41% 0.145 -0.1547)
OKLCHoklch(49.41% 0.212 313.1)
XYZxyz(19.4435, 10.1502, 44.1061)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27B4 #51B427
analogous
#4427B4 #8A27B4 #B42797
triadic
#8A27B4 #B48A27 #27B48A
tetradic
#8A27B4 #B44427 #51B427 #2797B4
square
#8A27B4 #B44427 #51B427 #2797B4
split-complementary
#8A27B4 #97B427 #27B444
monochromatic
#3D114F #631C82 #8A27B4 #AA42D6 #C174E1

Accessibility & contrast

On white

6.93
#8A27B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A27B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27B4
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27B4#FFFFFF#000000##FFFFFF
##8A27B41.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#145CB1
Tritanopia (blue-blind)
#85496D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a27b4;
/* rgb */ color: rgb(138, 39, 180);
/* oklch */ color: oklch(49.4% 0.212 313.1);
Tailwind
colors: {
  custom: {
    50: '#b16dcb',
    500: '#8a27b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a27b4;
$custom-light: #b16dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27b4",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 282.128,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49408,
    "c": 0.21204,
    "h": 313.1
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#8A27B4
secondary
#89C86F
accent
#E74072
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27B4

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

Preview Lab → · Contrast checker → · Palette generator →

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