#8727A2#8727A2

#8727A2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.195 H 317.6°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8727A2
RGBrgb(135, 39, 162)
HSLhsl(287, 61%, 39%)
HSVhsv(287, 76%, 64%)
CMYKcmyk(16.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(36.39, 57.21, -46.74)
CIE-LCHlch(36.39, 73.88, 320.75°)
OKLaboklab(47.7% 0.144 -0.1315)
OKLCHoklch(47.7% 0.195 317.6)
XYZxyz(17.2378, 9.2113, 35.0454)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8727A2 #42A227
analogous
#4927A2 #8727A2 #A22780
triadic
#8727A2 #A28727 #27A287
tetradic
#8727A2 #A24927 #42A227 #2780A2
square
#8727A2 #A24927 #42A227 #2780A2
split-complementary
#8727A2 #80A227 #27A249
monochromatic
#350F3F #5E1B71 #8727A2 #AE37CF #C269DB

Accessibility & contrast

On white

7.39
#8727A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8727A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8727A2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8727A2#FFFFFF#000000##FFFFFF
##8727A21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#2B589F
Tritanopia (blue-blind)
#864163
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8727a2;
/* rgb */ color: rgb(135, 39, 162);
/* oklch */ color: oklch(47.7% 0.195 317.6);
Tailwind
colors: {
  custom: {
    50: '#ae6cbe',
    500: '#8727a2',
    950: '#000000',
  },
}
SCSS
$custom: #8727a2;
$custom-light: #ae6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8727a2",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 286.829,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47701,
    "c": 0.19502,
    "h": 317.6
  },
  "luminance": 0.09211
}

Semantic roles & 50–950 ramp

primary
#8727A2
secondary
#78C164
accent
#E44367
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8727A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8727A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva