#9D319E#9D319E

#9D319E is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.190 H 327.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9D319E
RGBrgb(157, 49, 158)
HSLhsl(299, 53%, 41%)
HSVhsv(299, 69%, 62%)
CMYKcmyk(0.6%, 69%, 0%, 38%)
CIE-LABlab(40.95, 57.62, -36.84)
CIE-LCHlch(40.95, 68.39, 327.41°)
OKLaboklab(51.58% 0.1602 -0.102)
OKLCHoklch(51.58% 0.19 327.5)
XYZxyz(21.1742, 11.8348, 33.5102)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D319E #329E31
analogous
#67319E #9D319E #9E3168
triadic
#9D319E #9E9D31 #319E9D
tetradic
#9D319E #9E6731 #329E31 #31689E
square
#9D319E #9E6731 #329E31 #31689E
split-complementary
#9D319E #689E31 #319E67
monochromatic
#401441 #6F236F #9D319E #C546C6 #D375D4

Accessibility & contrast

On white

6.24
#9D319E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9D319E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D319E
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D319E#FFFFFF#000000##FFFFFF
##9D319E1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A1
Deuteranopia (green-blind)
#4C659B
Tritanopia (blue-blind)
#A24164
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d319e;
/* rgb */ color: rgb(157, 49, 158);
/* oklch */ color: oklch(51.6% 0.190 327.5);
Tailwind
colors: {
  custom: {
    50: '#bd73bb',
    500: '#9d319e',
    950: '#000000',
  },
}
SCSS
$custom: #9d319e;
$custom-light: #bd73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d319e",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 299.45,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.18992,
    "h": 327.5
  },
  "luminance": 0.11833
}

Semantic roles & 50–950 ramp

primary
#9D319E
secondary
#6FBC6E
accent
#DC4C4D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D319E

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

Preview Lab → · Contrast checker → · Palette generator →

#9D319E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva