#8D1F98#8D1F98

#8D1F98 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.197 H 323.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8D1F98
RGBrgb(141, 31, 152)
HSLhsl(295, 66%, 36%)
HSVhsv(295, 80%, 60%)
CMYKcmyk(7.2%, 79.6%, 0%, 40.4%)
CIE-LABlab(35.81, 59.16, -41.55)
CIE-LCHlch(35.81, 72.30, 324.92°)
OKLaboklab(47.28% 0.1592 -0.116)
OKLCHoklch(47.28% 0.197 323.9)
XYZxyz(17.1415, 8.9108, 30.5168)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F98 #2A981F
analogous
#501F98 #8D1F98 #981F66
triadic
#8D1F98 #988D1F #1F988D
tetradic
#8D1F98 #98501F #2A981F #1F6698
square
#8D1F98 #98501F #2A981F #1F6698
split-complementary
#8D1F98 #66981F #1F9850
monochromatic
#2F0A32 #5E1565 #8D1F98 #BC29CB #D055DC

Accessibility & contrast

On white

7.55
#8D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8D1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F98
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F98#FFFFFF#000000##FFFFFF
##8D1F981.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#375895
Tritanopia (blue-blind)
#90375C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d1f98;
/* rgb */ color: rgb(141, 31, 152);
/* oklch */ color: oklch(47.3% 0.197 323.9);
Tailwind
colors: {
  custom: {
    50: '#b269b7',
    500: '#8d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f98;
$custom-light: #b269b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f98",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 294.545,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47277,
    "c": 0.19702,
    "h": 323.9
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

primary
#8D1F98
secondary
#5DC053
accent
#E93F4E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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