#8A2780#8A2780

#8A2780 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.168 H 332.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8A2780
RGBrgb(138, 39, 128)
HSLhsl(306, 56%, 35%)
HSVhsv(306, 72%, 54%)
CMYKcmyk(0%, 71.7%, 7.2%, 45.9%)
CIE-LABlab(34.83, 51.72, -28.36)
CIE-LCHlch(34.83, 58.99, 331.26°)
OKLaboklab(46.03% 0.1486 -0.0779)
OKLCHoklch(46.03% 0.168 332.3)
XYZxyz(15.1031, 8.4140, 21.2465)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2780 #278A31
analogous
#63278A #8A2780 #8A274E
triadic
#8A2780 #808A27 #27808A
tetradic
#8A2780 #8A6327 #278A31 #274E8A
square
#8A2780 #8A6327 #278A31 #274E8A
split-complementary
#8A2780 #4E8A27 #278A63
monochromatic
#2B0C27 #5A1A54 #8A2780 #BA34AC #D15BC5

Accessibility & contrast

On white

7.83
#8A2780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A2780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2780
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2780#FFFFFF#000000##FFFFFF
##8A27801.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224983
Deuteranopia (green-blind)
#46577E
Tritanopia (blue-blind)
#903150
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2780;
/* rgb */ color: rgb(138, 39, 128);
/* oklch */ color: oklch(46.0% 0.168 332.3);
Tailwind
colors: {
  custom: {
    50: '#af6ba5',
    500: '#8a2780',
    950: '#000000',
  },
}
SCSS
$custom: #8a2780;
$custom-light: #af6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2780",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 306.061,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46025,
    "c": 0.16773,
    "h": 332.3
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#8A2780
secondary
#57B661
accent
#DF5849
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2780

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

Preview Lab → · Contrast checker → · Palette generator →

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