#8A27B3#8A27B3

#8A27B3 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.211 H 313.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A27B3
RGBrgb(138, 39, 179)
HSLhsl(282, 64%, 43%)
HSVhsv(282, 78%, 70%)
CMYKcmyk(22.9%, 78.2%, 0%, 29.8%)
CIE-LABlab(38.04, 61.17, -54.21)
CIE-LCHlch(38.04, 81.74, 318.45°)
OKLaboklab(49.34% 0.1452 -0.1533)
OKLCHoklch(49.34% 0.211 313.4)
XYZxyz(19.3420, 10.1096, 43.5716)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A27B3 #50B327
analogous
#4427B3 #8A27B3 #B32796
triadic
#8A27B3 #B38A27 #27B38A
tetradic
#8A27B3 #B34427 #50B327 #2796B3
square
#8A27B3 #B34427 #50B327 #2796B3
split-complementary
#8A27B3 #96B327 #27B344
monochromatic
#3D114E #631C81 #8A27B3 #AA41D6 #C174E1

Accessibility & contrast

On white

6.95
#8A27B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A27B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A27B3
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A27B3#FFFFFF#000000##FFFFFF
##8A27B31.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#165CB0
Tritanopia (blue-blind)
#86486D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a27b3;
/* rgb */ color: rgb(138, 39, 179);
/* oklch */ color: oklch(49.3% 0.211 313.4);
Tailwind
colors: {
  custom: {
    50: '#b16dcb',
    500: '#8a27b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a27b3;
$custom-light: #b16dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a27b3",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 282.429,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49335,
    "c": 0.21114,
    "h": 313.4
  },
  "luminance": 0.10109
}

Semantic roles & 50–950 ramp

primary
#8A27B3
secondary
#88C86E
accent
#E74171
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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