#9D31B6#9D31B6

#9D31B6 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.1% C 0.210 H 319.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9D31B6
RGBrgb(157, 49, 182)
HSLhsl(289, 58%, 45%)
HSVhsv(289, 73%, 71%)
CMYKcmyk(13.7%, 73.1%, 0%, 28.6%)
CIE-LABlab(42.37, 61.96, -48.85)
CIE-LCHlch(42.37, 78.90, 321.75°)
OKLaboklab(53.05% 0.1594 -0.137)
OKLCHoklch(53.05% 0.21 319.3)
XYZxyz(23.4453, 12.7433, 45.4716)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31B6 #4AB631
analogous
#5B31B6 #9D31B6 #B6318C
triadic
#9D31B6 #B69D31 #31B69D
tetradic
#9D31B6 #B65B31 #4AB631 #318CB6
square
#9D31B6 #B65B31 #4AB631 #318CB6
split-complementary
#9D31B6 #8CB631 #31B65B
monochromatic
#4A1756 #732486 #9D31B6 #B953D1 #CD84DE

Accessibility & contrast

On white

5.92
#9D31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9D31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31B6
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31B6#FFFFFF#000000##FFFFFF
##9D31B61.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#3B68B3
Tritanopia (blue-blind)
#9D4B71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d31b6;
/* rgb */ color: rgb(157, 49, 182);
/* oklch */ color: oklch(53.1% 0.210 319.3);
Tailwind
colors: {
  custom: {
    50: '#be74cc',
    500: '#9d31b6',
    950: '#000000',
  },
}
SCSS
$custom: #9d31b6;
$custom-light: #be74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31b6",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 288.722,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53051,
    "c": 0.21021,
    "h": 319.3
  },
  "luminance": 0.12742
}

Semantic roles & 50–950 ramp

primary
#9D31B6
secondary
#8AC77C
accent
#E14764
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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