#8B27AF#8B27AF

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

Color values

HEX#8B27AF
RGBrgb(139, 39, 175)
HSLhsl(284, 64%, 42%)
HSVhsv(284, 78%, 69%)
CMYKcmyk(20.6%, 77.7%, 0%, 31.4%)
CIE-LABlab(37.91, 60.56, -52.04)
CIE-LCHlch(37.91, 79.85, 319.33°)
OKLaboklab(49.18% 0.1472 -0.1469)
OKLCHoklch(49.18% 0.208 315.1)
XYZxyz(19.1096, 10.0359, 41.4796)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27AF #4BAF27
analogous
#4727AF #8B27AF #AF278F
triadic
#8B27AF #AF8B27 #27AF8B
tetradic
#8B27AF #AF4727 #4BAF27 #278FAF
square
#8B27AF #AF4727 #4BAF27 #278FAF
split-complementary
#8B27AF #8FAF27 #27AF47
monochromatic
#3B114B #631C7D #8B27AF #AD3FD4 #C271DF

Accessibility & contrast

On white

6.98
#8B27AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B27AF
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27AF#FFFFFF#000000##FFFFFF
##8B27AF1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#205CAC
Tritanopia (blue-blind)
#88466A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b27af;
/* rgb */ color: rgb(139, 39, 175);
/* oklch */ color: oklch(49.2% 0.208 315.1);
Tailwind
colors: {
  custom: {
    50: '#b16dc8',
    500: '#8b27af',
    950: '#000000',
  },
}
SCSS
$custom: #8b27af;
$custom-light: #b16dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27af",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 284.118,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49183,
    "c": 0.20795,
    "h": 315.1
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#8B27AF
secondary
#84C66B
accent
#E7416D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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