#9731B6#9731B6

#9731B6 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.2% C 0.208 H 317.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9731B6
RGBrgb(151, 49, 182)
HSLhsl(286, 58%, 45%)
HSVhsv(286, 73%, 71%)
CMYKcmyk(17%, 73.1%, 0%, 28.6%)
CIE-LABlab(41.46, 60.72, -50.37)
CIE-LCHlch(41.46, 78.89, 320.33°)
OKLaboklab(52.22% 0.1521 -0.1417)
OKLCHoklch(52.22% 0.208 317)
XYZxyz(22.3031, 12.1543, 45.4181)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B6 #50B631
analogous
#5431B6 #9731B6 #B63192
triadic
#9731B6 #B69731 #31B697
tetradic
#9731B6 #B65431 #50B631 #3192B6
square
#9731B6 #B65431 #50B631 #3192B6
split-complementary
#9731B6 #92B631 #31B654
monochromatic
#471756 #6F2486 #9731B6 #B453D1 #C984DE

Accessibility & contrast

On white

6.12
#9731B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9731B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B6#FFFFFF#000000##FFFFFF
##9731B61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#3365B3
Tritanopia (blue-blind)
#954D71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9731b6;
/* rgb */ color: rgb(151, 49, 182);
/* oklch */ color: oklch(52.2% 0.208 317.0);
Tailwind
colors: {
  custom: {
    50: '#ba73cd',
    500: '#9731b6',
    950: '#000000',
  },
}
SCSS
$custom: #9731b6;
$custom-light: #ba73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b6",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 286.015,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52218,
    "c": 0.20787,
    "h": 317
  },
  "luminance": 0.12153
}

Semantic roles & 50–950 ramp

primary
#9731B6
secondary
#8DC77C
accent
#E1476B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B6

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

Preview Lab → · Contrast checker → · Palette generator →

#9731B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva