#8A2A82#8A2A82

#8A2A82 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.166 H 331.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8A2A82
RGBrgb(138, 42, 130)
HSLhsl(305, 53%, 35%)
HSVhsv(305, 70%, 54%)
CMYKcmyk(0%, 69.6%, 5.8%, 45.9%)
CIE-LABlab(35.35, 50.90, -28.80)
CIE-LCHlch(35.35, 58.48, 330.50°)
OKLaboklab(46.43% 0.1454 -0.0791)
OKLCHoklch(46.43% 0.166 331.4)
XYZxyz(15.3384, 8.6721, 21.9808)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A82 #2A8A32
analogous
#622A8A #8A2A82 #8A2A52
triadic
#8A2A82 #828A2A #2A828A
tetradic
#8A2A82 #8A622A #2A8A32 #2A528A
square
#8A2A82 #8A622A #2A8A32 #2A528A
split-complementary
#8A2A82 #528A2A #2A8A62
monochromatic
#2C0D2A #5B1C56 #8A2A82 #B938AE #CF60C5

Accessibility & contrast

On white

7.68
#8A2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A82
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A82#FFFFFF#000000##FFFFFF
##8A2A821.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244B85
Deuteranopia (green-blind)
#475880
Tritanopia (blue-blind)
#903452
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2a82;
/* rgb */ color: rgb(138, 42, 130);
/* oklch */ color: oklch(46.4% 0.166 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6ca6',
    500: '#8a2a82',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a82;
$custom-light: #af6ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a82",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 305,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46431,
    "c": 0.16551,
    "h": 331.4
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

primary
#8A2A82
secondary
#5BB463
accent
#DD574B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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