#8D2F97#8D2F97

#8D2F97 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.178 H 323.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8D2F97
RGBrgb(141, 47, 151)
HSLhsl(294, 53%, 39%)
HSVhsv(294, 69%, 59%)
CMYKcmyk(6.6%, 68.9%, 0%, 40.8%)
CIE-LABlab(37.72, 53.37, -37.90)
CIE-LCHlch(37.72, 65.46, 324.62°)
OKLaboklab(48.62% 0.1439 -0.1055)
OKLCHoklch(48.62% 0.178 323.8)
XYZxyz(17.5864, 9.9311, 30.2627)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2F97 #39972F
analogous
#592F97 #8D2F97 #972F6D
triadic
#8D2F97 #978D2F #2F978D
tetradic
#8D2F97 #97592F #39972F #2F6D97
square
#8D2F97 #97592F #39972F #2F6D97
split-complementary
#8D2F97 #6D972F #2F9759
monochromatic
#36123A #612068 #8D2F97 #B740C3 #C86ED2

Accessibility & contrast

On white

7.03
#8D2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8D2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2F97
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2F97#FFFFFF#000000##FFFFFF
##8D2F971.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14529A
Deuteranopia (green-blind)
#405D94
Tritanopia (blue-blind)
#90405F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d2f97;
/* rgb */ color: rgb(141, 47, 151);
/* oklch */ color: oklch(48.6% 0.178 323.8);
Tailwind
colors: {
  custom: {
    50: '#b170b6',
    500: '#8d2f97',
    950: '#000000',
  },
}
SCSS
$custom: #8d2f97;
$custom-light: #b170b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2f97",
  "rgb": {
    "r": 141,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 294.231,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.17842,
    "h": 323.8
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#8D2F97
secondary
#70B968
accent
#DC4C5A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8D2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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