#8A2582#8A2582

#8A2582 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.172 H 331.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8A2582
RGBrgb(138, 37, 130)
HSLhsl(305, 58%, 34%)
HSVhsv(305, 73%, 54%)
CMYKcmyk(0%, 73.2%, 5.8%, 45.9%)
CIE-LABlab(34.68, 52.78, -29.85)
CIE-LCHlch(34.68, 60.64, 330.51°)
OKLaboklab(45.95% 0.1508 -0.0821)
OKLCHoklch(45.95% 0.172 331.4)
XYZxyz(15.1721, 8.3393, 21.9253)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2582 #258A2D
analogous
#5F258A #8A2582 #8A2550
triadic
#8A2582 #828A25 #25828A
tetradic
#8A2582 #8A5F25 #258A2D #25508A
square
#8A2582 #8A5F25 #258A2D #25508A
split-complementary
#8A2582 #508A25 #258A5F
monochromatic
#290B27 #5A1855 #8A2582 #BA32AF #D257C8

Accessibility & contrast

On white

7.87
#8A2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A2582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2582
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2582#FFFFFF#000000##FFFFFF
##8A25821.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4985
Deuteranopia (green-blind)
#445780
Tritanopia (blue-blind)
#903151
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2582;
/* rgb */ color: rgb(138, 37, 130);
/* oklch */ color: oklch(46.0% 0.172 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6aa6',
    500: '#8a2582',
    950: '#000000',
  },
}
SCSS
$custom: #8a2582;
$custom-light: #af6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2582",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 304.752,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45952,
    "c": 0.17171,
    "h": 331.4
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#8A2582
secondary
#54B75C
accent
#E15347
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2582

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

Preview Lab → · Contrast checker → · Palette generator →

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