#8D2798#8D2798

#8D2798 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.189 H 323.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8D2798
RGBrgb(141, 39, 152)
HSLhsl(294, 59%, 37%)
HSVhsv(294, 74%, 60%)
CMYKcmyk(7.2%, 74.3%, 0%, 40.4%)
CIE-LABlab(36.71, 56.59, -40.12)
CIE-LCHlch(36.71, 69.36, 324.66°)
OKLaboklab(47.91% 0.1522 -0.1119)
OKLCHoklch(47.91% 0.189 323.7)
XYZxyz(17.3770, 9.3818, 30.5953)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2798 #329827
analogous
#542798 #8D2798 #98276B
triadic
#8D2798 #988D27 #27988D
tetradic
#8D2798 #985427 #329827 #276B98
square
#8D2798 #985427 #329827 #276B98
split-complementary
#8D2798 #6B9827 #279854
monochromatic
#330E37 #601B67 #8D2798 #BA33C9 #CC63D7

Accessibility & contrast

On white

7.30
#8D2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8D2798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2798
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2798#FFFFFF#000000##FFFFFF
##8D27981.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#3B5A95
Tritanopia (blue-blind)
#8F3B5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8d2798;
/* rgb */ color: rgb(141, 39, 152);
/* oklch */ color: oklch(47.9% 0.189 323.7);
Tailwind
colors: {
  custom: {
    50: '#b26cb7',
    500: '#8d2798',
    950: '#000000',
  },
}
SCSS
$custom: #8d2798;
$custom-light: #b26cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2798",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 294.159,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47914,
    "c": 0.18889,
    "h": 323.7
  },
  "luminance": 0.09381
}

Semantic roles & 50–950 ramp

primary
#8D2798
secondary
#68BC5E
accent
#E24555
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D2798

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

Preview Lab → · Contrast checker → · Palette generator →

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