#8A278A#8A278A

#8A278A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.176 H 327.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A278A
RGBrgb(138, 39, 138)
HSLhsl(300, 56%, 35%)
HSVhsv(300, 72%, 54%)
CMYKcmyk(0%, 71.7%, 0%, 45.9%)
CIE-LABlab(35.38, 53.42, -33.69)
CIE-LCHlch(35.38, 63.15, 327.76°)
OKLaboklab(46.6% 0.149 -0.0933)
OKLCHoklch(46.6% 0.176 327.9)
XYZxyz(15.7940, 8.6904, 24.8854)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A278A #278A27
analogous
#59278A #8A278A #8A2759
triadic
#8A278A #8A8A27 #278A8A
tetradic
#8A278A #8A5927 #278A27 #27598A
square
#8A278A #8A5927 #278A27 #27598A
split-complementary
#8A278A #598A27 #278A59
monochromatic
#2B0C2B #5A1A5A #8A278A #BA34BA #D15BD1

Accessibility & contrast

On white

7.67
#8A278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A278A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A278A#FFFFFF#000000##FFFFFF
##8A278A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#415887
Tritanopia (blue-blind)
#8E3656
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a278a;
/* rgb */ color: rgb(138, 39, 138);
/* oklch */ color: oklch(46.6% 0.176 327.9);
Tailwind
colors: {
  custom: {
    50: '#af6bac',
    500: '#8a278a',
    950: '#000000',
  },
}
SCSS
$custom: #8a278a;
$custom-light: #af6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a278a",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.466,
    "c": 0.17577,
    "h": 327.9
  },
  "luminance": 0.08689
}

Semantic roles & 50–950 ramp

primary
#8A278A
secondary
#57B657
accent
#DF4949
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A278A

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

Preview Lab → · Contrast checker → · Palette generator →

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