#8A278D#8A278D

#8A278D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.178 H 326.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A278D
RGBrgb(138, 39, 141)
HSLhsl(298, 57%, 35%)
HSVhsv(298, 72%, 55%)
CMYKcmyk(2.1%, 72.3%, 0%, 44.7%)
CIE-LABlab(35.55, 53.94, -35.26)
CIE-LCHlch(35.55, 64.45, 326.83°)
OKLaboklab(46.78% 0.149 -0.0979)
OKLCHoklch(46.78% 0.178 326.7)
XYZxyz(16.0142, 8.7785, 26.0451)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278D #2A8D27
analogous
#57278D #8A278D #8D275D
triadic
#8A278D #8D8A27 #278D8A
tetradic
#8A278D #8D5727 #2A8D27 #275D8D
square
#8A278D #8D5727 #2A8D27 #275D8D
split-complementary
#8A278D #5D8D27 #278D57
monochromatic
#2C0C2D #5B1A5D #8A278D #B934BD #CF5CD2

Accessibility & contrast

On white

7.62
#8A278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278D
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278D#FFFFFF#000000##FFFFFF
##8A278D1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#3F588A
Tritanopia (blue-blind)
#8E3757
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a278d;
/* rgb */ color: rgb(138, 39, 141);
/* oklch */ color: oklch(46.8% 0.178 326.7);
Tailwind
colors: {
  custom: {
    50: '#af6baf',
    500: '#8a278d',
    950: '#000000',
  },
}
SCSS
$custom: #8a278d;
$custom-light: #af6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278d",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 298.235,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4678,
    "c": 0.17826,
    "h": 326.7
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#8A278D
secondary
#5BB759
accent
#E0484C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278D

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

Preview Lab → · Contrast checker → · Palette generator →

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