#8A2788#8A2788

#8A2788 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.174 H 328.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2788
RGBrgb(138, 39, 136)
HSLhsl(301, 56%, 35%)
HSVhsv(301, 72%, 54%)
CMYKcmyk(0%, 71.7%, 1.4%, 45.9%)
CIE-LABlab(35.27, 53.07, -32.64)
CIE-LCHlch(35.27, 62.30, 328.41°)
OKLaboklab(46.48% 0.1489 -0.0902)
OKLCHoklch(46.48% 0.174 328.8)
XYZxyz(15.6505, 8.6330, 24.1298)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2788 #278A29
analogous
#5B278A #8A2788 #8A2757
triadic
#8A2788 #888A27 #27888A
tetradic
#8A2788 #8A5B27 #278A29 #27578A
square
#8A2788 #8A5B27 #278A29 #27578A
split-complementary
#8A2788 #578A27 #278A5B
monochromatic
#2B0C2A #5A1A59 #8A2788 #BA34B7 #D15BCE

Accessibility & contrast

On white

7.70
#8A2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2788
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2788#FFFFFF#000000##FFFFFF
##8A27881.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194B8B
Deuteranopia (green-blind)
#425885
Tritanopia (blue-blind)
#8F3555
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2788;
/* rgb */ color: rgb(138, 39, 136);
/* oklch */ color: oklch(46.5% 0.174 328.8);
Tailwind
colors: {
  custom: {
    50: '#af6bab',
    500: '#8a2788',
    950: '#000000',
  },
}
SCSS
$custom: #8a2788;
$custom-light: #af6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2788",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 301.212,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46482,
    "c": 0.17413,
    "h": 328.8
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

primary
#8A2788
secondary
#57B659
accent
#DF4C49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2788

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

Preview Lab → · Contrast checker → · Palette generator →

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