#9731B2#9731B2

#9731B2 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.204 H 318.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9731B2
RGBrgb(151, 49, 178)
HSLhsl(287, 57%, 45%)
HSVhsv(287, 72%, 70%)
CMYKcmyk(15.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(41.20, 59.95, -48.42)
CIE-LCHlch(41.20, 77.06, 321.07°)
OKLaboklab(51.95% 0.1525 -0.1359)
OKLCHoklch(51.95% 0.204 318.3)
XYZxyz(21.8956, 11.9913, 43.2721)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B2 #4CB231
analogous
#5731B2 #9731B2 #B2318D
triadic
#9731B2 #B29731 #31B297
tetradic
#9731B2 #B25731 #4CB231 #318DB2
square
#9731B2 #B25731 #4CB231 #318DB2
split-complementary
#9731B2 #8DB231 #31B257
monochromatic
#461752 #6E2482 #9731B2 #B551CF #C981DC

Accessibility & contrast

On white

6.18
#9731B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9731B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B2#FFFFFF#000000##FFFFFF
##9731B21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#3764AF
Tritanopia (blue-blind)
#964B6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731b2;
/* rgb */ color: rgb(151, 49, 178);
/* oklch */ color: oklch(52.0% 0.204 318.3);
Tailwind
colors: {
  custom: {
    50: '#b973ca',
    500: '#9731b2',
    950: '#000000',
  },
}
SCSS
$custom: #9731b2;
$custom-light: #b973ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b2",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 287.442,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.20431,
    "h": 318.3
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#9731B2
secondary
#89C579
accent
#E04868
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B2

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

Preview Lab → · Contrast checker → · Palette generator →

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