#9D31B2#9D31B2

#9D31B2 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.8% C 0.207 H 320.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9D31B2
RGBrgb(157, 49, 178)
HSLhsl(290, 57%, 45%)
HSVhsv(290, 72%, 70%)
CMYKcmyk(11.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(42.12, 61.21, -46.89)
CIE-LCHlch(42.12, 77.11, 322.55°)
OKLaboklab(52.79% 0.1597 -0.1313)
OKLCHoklch(52.79% 0.207 320.6)
XYZxyz(23.0379, 12.5803, 43.3256)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D31B2 #46B231
analogous
#5D31B2 #9D31B2 #B23186
triadic
#9D31B2 #B29D31 #31B29D
tetradic
#9D31B2 #B25D31 #46B231 #3186B2
square
#9D31B2 #B25D31 #46B231 #3186B2
split-complementary
#9D31B2 #86B231 #31B25D
monochromatic
#481752 #732482 #9D31B2 #BB51CF #CD81DC

Accessibility & contrast

On white

5.97
#9D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9D31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D31B2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D31B2#FFFFFF#000000##FFFFFF
##9D31B21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3E67AF
Tritanopia (blue-blind)
#9E4A6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d31b2;
/* rgb */ color: rgb(157, 49, 178);
/* oklch */ color: oklch(52.8% 0.207 320.6);
Tailwind
colors: {
  custom: {
    50: '#be74ca',
    500: '#9d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d31b2;
$custom-light: #be74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d31b2",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 290.233,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.20676,
    "h": 320.6
  },
  "luminance": 0.12579
}

Semantic roles & 50–950 ramp

primary
#9D31B2
secondary
#86C579
accent
#E04861
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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