#9731B8#9731B8

#9731B8 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.210 H 316.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9731B8
RGBrgb(151, 49, 184)
HSLhsl(285, 58%, 46%)
HSVhsv(285, 73%, 72%)
CMYKcmyk(17.9%, 73.4%, 0%, 27.8%)
CIE-LABlab(41.59, 61.12, -51.33)
CIE-LCHlch(41.59, 79.81, 319.97°)
OKLaboklab(52.35% 0.1519 -0.1445)
OKLCHoklch(52.35% 0.21 316.4)
XYZxyz(22.5112, 12.2375, 46.5144)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B8 #52B831
analogous
#5331B8 #9731B8 #B83195
triadic
#9731B8 #B89731 #31B897
tetradic
#9731B8 #B85331 #52B831 #3195B8
square
#9731B8 #B85331 #52B831 #3195B8
split-complementary
#9731B8 #95B831 #31B853
monochromatic
#481757 #6F2488 #9731B8 #B355D2 #C985DE

Accessibility & contrast

On white

6.09
#9731B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9731B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B8#FFFFFF#000000##FFFFFF
##9731B81.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#3165B5
Tritanopia (blue-blind)
#954D72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9731b8;
/* rgb */ color: rgb(151, 49, 184);
/* oklch */ color: oklch(52.4% 0.210 316.4);
Tailwind
colors: {
  custom: {
    50: '#ba73ce',
    500: '#9731b8',
    950: '#000000',
  },
}
SCSS
$custom: #9731b8;
$custom-light: #ba73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b8",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 285.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52353,
    "c": 0.20965,
    "h": 316.4
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#9731B8
secondary
#8FC87D
accent
#E1476C
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9731B8

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

Preview Lab → · Contrast checker → · Palette generator →

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