#8D318E#8D318E

#8D318E is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.3% C 0.168 H 327.4°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8D318E
RGBrgb(141, 49, 142)
HSLhsl(299, 49%, 37%)
HSVhsv(299, 65%, 56%)
CMYKcmyk(0.7%, 65.5%, 0%, 44.3%)
CIE-LABlab(37.51, 50.89, -32.76)
CIE-LCHlch(37.51, 60.52, 327.23°)
OKLaboklab(48.3% 0.1414 -0.0906)
OKLCHoklch(48.3% 0.168 327.4)
XYZxyz(16.9650, 9.8135, 26.5866)
Luminance0.0981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D318E #328E31
analogous
#5F318E #8D318E #8E3160
triadic
#8D318E #8E8D31 #318E8D
tetradic
#8D318E #8E5F31 #328E31 #31608E
square
#8D318E #8E5F31 #328E31 #31608E
split-complementary
#8D318E #608E31 #318E5F
monochromatic
#331233 #602161 #8D318E #BA41BB #CC6DCD

Accessibility & contrast

On white

7.09
#8D318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8D318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D318E
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D318E#FFFFFF#000000##FFFFFF
##8D318E1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#475C8C
Tritanopia (blue-blind)
#913E5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d318e;
/* rgb */ color: rgb(141, 49, 142);
/* oklch */ color: oklch(48.3% 0.168 327.4);
Tailwind
colors: {
  custom: {
    50: '#b170af',
    500: '#8d318e',
    950: '#000000',
  },
}
SCSS
$custom: #8d318e;
$custom-light: #b170af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d318e",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 299.355,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.483,
    "c": 0.16789,
    "h": 327.4
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#8D318E
secondary
#68B467
accent
#D85051
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D318E

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

Preview Lab → · Contrast checker → · Palette generator →

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