#8D2A7F#8D2A7F

#8D2A7F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.165 H 334.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8D2A7F
RGBrgb(141, 42, 127)
HSLhsl(308, 54%, 36%)
HSVhsv(308, 70%, 55%)
CMYKcmyk(0%, 70.2%, 9.9%, 44.7%)
CIE-LABlab(35.70, 51.17, -26.34)
CIE-LCHlch(35.70, 57.56, 332.76°)
OKLaboklab(46.74% 0.1484 -0.072)
OKLCHoklch(46.74% 0.165 334.1)
XYZxyz(15.6434, 8.8523, 20.9593)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2A7F #2A8D38
analogous
#692A8D #8D2A7F #8D2A4D
triadic
#8D2A7F #7F8D2A #2A7F8D
tetradic
#8D2A7F #8D692A #2A8D38 #2A4D8D
square
#8D2A7F #8D692A #2A8D38 #2A4D8D
split-complementary
#8D2A7F #4D8D2A #2A8D69
monochromatic
#2F0E2A #5E1C55 #8D2A7F #BC38A9 #D061C0

Accessibility & contrast

On white

7.58
#8D2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8D2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2A7F
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2A7F#FFFFFF#000000##FFFFFF
##8D2A7F1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#4A597D
Tritanopia (blue-blind)
#943251
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d2a7f;
/* rgb */ color: rgb(141, 42, 127);
/* oklch */ color: oklch(46.7% 0.165 334.1);
Tailwind
colors: {
  custom: {
    50: '#b16da4',
    500: '#8d2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8d2a7f;
$custom-light: #b16da4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2a7f",
  "rgb": {
    "r": 141,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 308.485,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46735,
    "c": 0.16494,
    "h": 334.1
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#8D2A7F
secondary
#5DB669
accent
#DD5F4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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