#8A2781#8A2781

#8A2781 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.169 H 331.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8A2781
RGBrgb(138, 39, 129)
HSLhsl(305, 56%, 35%)
HSVhsv(305, 72%, 54%)
CMYKcmyk(0%, 71.7%, 6.5%, 45.9%)
CIE-LABlab(34.88, 51.89, -28.90)
CIE-LCHlch(34.88, 59.39, 330.88°)
OKLaboklab(46.08% 0.1486 -0.0794)
OKLCHoklch(46.08% 0.169 331.9)
XYZxyz(15.1692, 8.4405, 21.5949)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2781 #278A30
analogous
#62278A #8A2781 #8A274F
triadic
#8A2781 #818A27 #27818A
tetradic
#8A2781 #8A6227 #278A30 #274F8A
square
#8A2781 #8A6227 #278A30 #274F8A
split-complementary
#8A2781 #4F8A27 #278A62
monochromatic
#2B0C28 #5A1A54 #8A2781 #BA34AE #D15BC6

Accessibility & contrast

On white

7.81
#8A2781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A2781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2781
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2781#FFFFFF#000000##FFFFFF
##8A27811.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214984
Deuteranopia (green-blind)
#46577F
Tritanopia (blue-blind)
#903251
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2781;
/* rgb */ color: rgb(138, 39, 129);
/* oklch */ color: oklch(46.1% 0.169 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6ba6',
    500: '#8a2781',
    950: '#000000',
  },
}
SCSS
$custom: #8a2781;
$custom-light: #af6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2781",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 305.455,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.16851,
    "h": 331.9
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#8A2781
secondary
#57B660
accent
#DF5649
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2781

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

Preview Lab → · Contrast checker → · Palette generator →

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