#8D2A7E#8D2A7E

#8D2A7E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.164 H 334.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#8D2A7E
RGBrgb(141, 42, 126)
HSLhsl(309, 54%, 36%)
HSVhsv(309, 70%, 55%)
CMYKcmyk(0%, 70.2%, 10.6%, 44.7%)
CIE-LABlab(35.65, 51.01, -25.80)
CIE-LCHlch(35.65, 57.17, 333.17°)
OKLaboklab(46.68% 0.1483 -0.0705)
OKLCHoklch(46.68% 0.164 334.6)
XYZxyz(15.5785, 8.8263, 20.6178)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2A7E #2A8D39
analogous
#6A2A8D #8D2A7E #8D2A4C
triadic
#8D2A7E #7E8D2A #2A7E8D
tetradic
#8D2A7E #8D6A2A #2A8D39 #2A4C8D
square
#8D2A7E #8D6A2A #2A8D39 #2A4C8D
split-complementary
#8D2A7E #4C8D2A #2A8D6A
monochromatic
#2F0E2A #5E1C54 #8D2A7E #BC38A8 #D061BF

Accessibility & contrast

On white

7.59
#8D2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D2A7E
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2A7E#FFFFFF#000000##FFFFFF
##8D2A7E1.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A80
Deuteranopia (green-blind)
#4B597C
Tritanopia (blue-blind)
#943250
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d2a7e;
/* rgb */ color: rgb(141, 42, 126);
/* oklch */ color: oklch(46.7% 0.164 334.6);
Tailwind
colors: {
  custom: {
    50: '#b16ca3',
    500: '#8d2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8d2a7e;
$custom-light: #b16ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2a7e",
  "rgb": {
    "r": 141,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 309.091,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46682,
    "c": 0.16417,
    "h": 334.6
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#8D2A7E
secondary
#5DB66A
accent
#DD614A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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