#8D297F#8D297F

#8D297F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.166 H 334.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8D297F
RGBrgb(141, 41, 127)
HSLhsl(308, 55%, 36%)
HSVhsv(308, 71%, 55%)
CMYKcmyk(0%, 70.9%, 9.9%, 44.7%)
CIE-LABlab(35.56, 51.56, -26.56)
CIE-LCHlch(35.56, 58.00, 332.75°)
OKLaboklab(46.64% 0.1495 -0.0726)
OKLCHoklch(46.64% 0.166 334.1)
XYZxyz(15.6083, 8.7822, 20.9476)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D297F #298D37
analogous
#69298D #8D297F #8D294D
triadic
#8D297F #7F8D29 #297F8D
tetradic
#8D297F #8D6929 #298D37 #294D8D
square
#8D297F #8D6929 #298D37 #294D8D
split-complementary
#8D297F #4D8D29 #298D69
monochromatic
#2E0D2A #5E1B54 #8D297F #BC37AA #D160C1

Accessibility & contrast

On white

7.62
#8D297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D297F
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D297F#FFFFFF#000000##FFFFFF
##8D297F1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#4A597D
Tritanopia (blue-blind)
#943150
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d297f;
/* rgb */ color: rgb(141, 41, 127);
/* oklch */ color: oklch(46.6% 0.166 334.1);
Tailwind
colors: {
  custom: {
    50: '#b16ca4',
    500: '#8d297f',
    950: '#000000',
  },
}
SCSS
$custom: #8d297f;
$custom-light: #b16ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d297f",
  "rgb": {
    "r": 141,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 308.4,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46636,
    "c": 0.16623,
    "h": 334.1
  },
  "luminance": 0.08781
}

Semantic roles & 50–950 ramp

primary
#8D297F
secondary
#5BB668
accent
#DE5E4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D297F

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

Preview Lab → · Contrast checker → · Palette generator →

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