#9731B3#9731B3

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

Color values

HEX#9731B3
RGBrgb(151, 49, 179)
HSLhsl(287, 57%, 45%)
HSVhsv(287, 73%, 70%)
CMYKcmyk(15.6%, 72.6%, 0%, 29.8%)
CIE-LABlab(41.27, 60.14, -48.91)
CIE-LCHlch(41.27, 77.52, 320.88°)
OKLaboklab(52.02% 0.1524 -0.1374)
OKLCHoklch(52.02% 0.205 318)
XYZxyz(21.9963, 12.0316, 43.8028)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B3 #4DB331
analogous
#5631B3 #9731B3 #B3318E
triadic
#9731B3 #B39731 #31B397
tetradic
#9731B3 #B35631 #4DB331 #318EB3
square
#9731B3 #B35631 #4DB331 #318EB3
split-complementary
#9731B3 #8EB331 #31B356
monochromatic
#461753 #6E2483 #9731B3 #B452D0 #C982DD

Accessibility & contrast

On white

6.17
#9731B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9731B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731B3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B3#FFFFFF#000000##FFFFFF
##9731B31.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#3664B0
Tritanopia (blue-blind)
#964B6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731b3;
/* rgb */ color: rgb(151, 49, 179);
/* oklch */ color: oklch(52.0% 0.205 318.0);
Tailwind
colors: {
  custom: {
    50: '#b973ca',
    500: '#9731b3',
    950: '#000000',
  },
}
SCSS
$custom: #9731b3;
$custom-light: #b973ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b3",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 287.077,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.2052,
    "h": 318
  },
  "luminance": 0.12031
}

Semantic roles & 50–950 ramp

primary
#9731B3
secondary
#8AC67A
accent
#E04868
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B3

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

Preview Lab → · Contrast checker → · Palette generator →

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