#8D2A7D#8D2A7D

#8D2A7D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.163 H 335.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8D2A7D
RGBrgb(141, 42, 125)
HSLhsl(310, 54%, 36%)
HSVhsv(310, 70%, 55%)
CMYKcmyk(0%, 70.2%, 11.3%, 44.7%)
CIE-LABlab(35.60, 50.85, -25.26)
CIE-LCHlch(35.60, 56.78, 333.59°)
OKLaboklab(46.63% 0.1482 -0.0689)
OKLCHoklch(46.63% 0.163 335.1)
XYZxyz(15.5143, 8.8006, 20.2797)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2A7D #2A8D3A
analogous
#6B2A8D #8D2A7D #8D2A4B
triadic
#8D2A7D #7D8D2A #2A7D8D
tetradic
#8D2A7D #8D6B2A #2A8D3A #2A4B8D
square
#8D2A7D #8D6B2A #2A8D3A #2A4B8D
split-complementary
#8D2A7D #4B8D2A #2A8D6B
monochromatic
#2F0E29 #5E1C53 #8D2A7D #BC38A7 #D061BE

Accessibility & contrast

On white

7.61
#8D2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8D2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2A7D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2A7D#FFFFFF#000000##FFFFFF
##8D2A7D1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#4B597B
Tritanopia (blue-blind)
#943150
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d2a7d;
/* rgb */ color: rgb(141, 42, 125);
/* oklch */ color: oklch(46.6% 0.163 335.1);
Tailwind
colors: {
  custom: {
    50: '#b16ca3',
    500: '#8d2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8d2a7d;
$custom-light: #b16ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2a7d",
  "rgb": {
    "r": 141,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 309.697,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46629,
    "c": 0.16341,
    "h": 335.1
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#8D2A7D
secondary
#5DB66B
accent
#DD624A
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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