#8C2F8A#8C2F8A

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

Color values

HEX#8C2F8A
RGBrgb(140, 47, 138)
HSLhsl(301, 50%, 37%)
HSVhsv(301, 66%, 55%)
CMYKcmyk(0%, 66.4%, 1.4%, 45.1%)
CIE-LABlab(36.83, 50.77, -31.38)
CIE-LCHlch(36.83, 59.68, 328.27°)
OKLaboklab(47.71% 0.1424 -0.0866)
OKLCHoklch(47.71% 0.167 328.7)
XYZxyz(16.4190, 9.4446, 24.9980)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2F8A #2F8C31
analogous
#602F8C #8C2F8A #8C2F5C
triadic
#8C2F8A #8A8C2F #2F8A8C
tetradic
#8C2F8A #8C602F #2F8C31 #2F5C8C
square
#8C2F8A #8C602F #2F8C31 #2F5C8C
split-complementary
#8C2F8A #5C8C2F #2F8C60
monochromatic
#301030 #5E205D #8C2F8A #BA3EB7 #CD69CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C2F8A#FFFFFF#000000##FFFFFF
##8C2F8A1.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)
#244F8D
Deuteranopia (green-blind)
#475B88
Tritanopia (blue-blind)
#913B58
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8c2f8a;
/* rgb */ color: rgb(140, 47, 138);
/* oklch */ color: oklch(47.7% 0.167 328.7);
Tailwind
colors: {
  custom: {
    50: '#b16fac',
    500: '#8c2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8c2f8a;
$custom-light: #b16fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2f8a",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 301.29,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47706,
    "c": 0.16664,
    "h": 328.7
  },
  "luminance": 0.09443
}

Semantic roles & 50–950 ramp

primary
#8C2F8A
secondary
#63B465
accent
#D9524F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8C2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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