#8B27AD#8B27AD

#8B27AD is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.0% C 0.206 H 315.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8B27AD
RGBrgb(139, 39, 173)
HSLhsl(285, 63%, 42%)
HSVhsv(285, 77%, 68%)
CMYKcmyk(19.7%, 77.5%, 0%, 32.2%)
CIE-LABlab(37.77, 60.16, -51.08)
CIE-LCHlch(37.77, 78.92, 319.67°)
OKLaboklab(49.04% 0.1475 -0.1441)
OKLCHoklch(49.04% 0.206 315.7)
XYZxyz(18.9146, 9.9579, 40.4528)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27AD #49AD27
analogous
#4827AD #8B27AD #AD278C
triadic
#8B27AD #AD8B27 #27AD8B
tetradic
#8B27AD #AD4827 #49AD27 #278CAD
square
#8B27AD #AD4827 #49AD27 #278CAD
split-complementary
#8B27AD #8CAD27 #27AD48
monochromatic
#3B1049 #631C7B #8B27AD #AD3ED3 #C370DF

Accessibility & contrast

On white

7.02
#8B27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8B27AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B27AD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27AD#FFFFFF#000000##FFFFFF
##8B27AD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#235BAA
Tritanopia (blue-blind)
#884569
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b27ad;
/* rgb */ color: rgb(139, 39, 173);
/* oklch */ color: oklch(49.0% 0.206 315.7);
Tailwind
colors: {
  custom: {
    50: '#b16dc6',
    500: '#8b27ad',
    950: '#000000',
  },
}
SCSS
$custom: #8b27ad;
$custom-light: #b16dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27ad",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 284.776,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4904,
    "c": 0.20618,
    "h": 315.7
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#8B27AD
secondary
#81C66A
accent
#E6426B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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