#8C2F7E#8C2F7E

#8C2F7E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.157 H 334.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#8C2F7E
RGBrgb(140, 47, 126)
HSLhsl(309, 50%, 37%)
HSVhsv(309, 66%, 55%)
CMYKcmyk(0%, 66.4%, 10%, 45.1%)
CIE-LABlab(36.21, 48.71, -24.94)
CIE-LCHlch(36.21, 54.73, 332.89°)
OKLaboklab(47.06% 0.1412 -0.0681)
OKLCHoklch(47.06% 0.157 334.3)
XYZxyz(15.5977, 9.1161, 20.6727)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2F7E #2F8C3D
analogous
#6C2F8C #8C2F7E #8C2F50
triadic
#8C2F7E #7E8C2F #2F7E8C
tetradic
#8C2F7E #8C6C2F #2F8C3D #2F508C
square
#8C2F7E #8C6C2F #2F8C3D #2F508C
split-complementary
#8C2F7E #508C2F #2F8C6C
monochromatic
#30102C #5E2055 #8C2F7E #BA3EA7 #CD69BE

Accessibility & contrast

On white

7.44
#8C2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8C2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2F7E
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2F7E#FFFFFF#000000##FFFFFF
##8C2F7E1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C80
Deuteranopia (green-blind)
#4C5A7C
Tritanopia (blue-blind)
#933652
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c2f7e;
/* rgb */ color: rgb(140, 47, 126);
/* oklch */ color: oklch(47.1% 0.157 334.3);
Tailwind
colors: {
  custom: {
    50: '#b06fa3',
    500: '#8c2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8c2f7e;
$custom-light: #b06fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2f7e",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 309.032,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.15676,
    "h": 334.3
  },
  "luminance": 0.09115
}

Semantic roles & 50–950 ramp

primary
#8C2F7E
secondary
#63B46F
accent
#D9634F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8C2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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