#8A2782#8A2782

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

Color values

HEX#8A2782
RGBrgb(138, 39, 130)
HSLhsl(305, 56%, 35%)
HSVhsv(305, 72%, 54%)
CMYKcmyk(0%, 71.7%, 5.8%, 45.9%)
CIE-LABlab(34.94, 52.05, -29.44)
CIE-LCHlch(34.94, 59.80, 330.51°)
OKLaboklab(46.14% 0.1487 -0.081)
OKLCHoklch(46.14% 0.169 331.4)
XYZxyz(15.2360, 8.4672, 21.9466)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2782 #278A2F
analogous
#60278A #8A2782 #8A2751
triadic
#8A2782 #828A27 #27828A
tetradic
#8A2782 #8A6027 #278A2F #27518A
square
#8A2782 #8A6027 #278A2F #27518A
split-complementary
#8A2782 #518A27 #278A60
monochromatic
#2B0C28 #5A1A55 #8A2782 #BA34AF #D15BC7

Accessibility & contrast

On white

7.80
#8A2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2782
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2782#FFFFFF#000000##FFFFFF
##8A27821.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204985
Deuteranopia (green-blind)
#455780
Tritanopia (blue-blind)
#903251
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2782;
/* rgb */ color: rgb(138, 39, 130);
/* oklch */ color: oklch(46.1% 0.169 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6ba6',
    500: '#8a2782',
    950: '#000000',
  },
}
SCSS
$custom: #8a2782;
$custom-light: #af6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2782",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 304.848,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.16931,
    "h": 331.4
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#8A2782
secondary
#57B65F
accent
#DF5549
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2782

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

Preview Lab → · Contrast checker → · Palette generator →

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