#8D2F87#8D2F87

#8D2F87 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.165 H 330.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8D2F87
RGBrgb(141, 47, 135)
HSLhsl(304, 50%, 37%)
HSVhsv(304, 67%, 55%)
CMYKcmyk(0%, 66.7%, 4.3%, 44.7%)
CIE-LABlab(36.83, 50.50, -29.52)
CIE-LCHlch(36.83, 58.50, 329.69°)
OKLaboklab(47.69% 0.1433 -0.0812)
OKLCHoklch(47.69% 0.165 330.5)
XYZxyz(16.3741, 9.4462, 23.8779)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2F87 #2F8D35
analogous
#642F8D #8D2F87 #8D2F58
triadic
#8D2F87 #878D2F #2F878D
tetradic
#8D2F87 #8D642F #2F8D35 #2F588D
square
#8D2F87 #8D642F #2F8D35 #2F588D
split-complementary
#8D2F87 #588D2F #2F8D64
monochromatic
#31102F #5F205B #8D2F87 #BB3EB3 #CD69C7

Accessibility & contrast

On white

7.27
#8D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2F87
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2F87#FFFFFF#000000##FFFFFF
##8D2F871.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E8A
Deuteranopia (green-blind)
#495B85
Tritanopia (blue-blind)
#923957
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d2f87;
/* rgb */ color: rgb(141, 47, 135);
/* oklch */ color: oklch(47.7% 0.165 330.5);
Tailwind
colors: {
  custom: {
    50: '#b16faa',
    500: '#8d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #8d2f87;
$custom-light: #b16faa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2f87",
  "rgb": {
    "r": 141,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 303.83,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47688,
    "c": 0.16469,
    "h": 330.5
  },
  "luminance": 0.09445
}

Semantic roles & 50–950 ramp

primary
#8D2F87
secondary
#64B469
accent
#DA574E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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