#8A2787#8A2787

#8A2787 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.173 H 329.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8A2787
RGBrgb(138, 39, 135)
HSLhsl(302, 56%, 35%)
HSVhsv(302, 72%, 54%)
CMYKcmyk(0%, 71.7%, 2.2%, 45.9%)
CIE-LABlab(35.21, 52.90, -32.11)
CIE-LCHlch(35.21, 61.88, 328.74°)
OKLaboklab(46.42% 0.1489 -0.0887)
OKLCHoklch(46.42% 0.173 329.2)
XYZxyz(15.5798, 8.6047, 23.7573)
Luminance0.0860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2787 #278A2A
analogous
#5B278A #8A2787 #8A2756
triadic
#8A2787 #878A27 #27878A
tetradic
#8A2787 #8A5B27 #278A2A #27568A
square
#8A2787 #8A5B27 #278A2A #27568A
split-complementary
#8A2787 #568A27 #278A5B
monochromatic
#2B0C2A #5A1A58 #8A2787 #BA34B6 #D15BCD

Accessibility & contrast

On white

7.72
#8A2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2787
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2787#FFFFFF#000000##FFFFFF
##8A27871.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#435784
Tritanopia (blue-blind)
#8F3454
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2787;
/* rgb */ color: rgb(138, 39, 135);
/* oklch */ color: oklch(46.4% 0.173 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6baa',
    500: '#8a2787',
    950: '#000000',
  },
}
SCSS
$custom: #8a2787;
$custom-light: #af6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2787",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 301.818,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46423,
    "c": 0.17333,
    "h": 329.2
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#8A2787
secondary
#57B65A
accent
#DF4D49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2787

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

Preview Lab → · Contrast checker → · Palette generator →

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