#9731B4#9731B4

#9731B4 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.1% C 0.206 H 317.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9731B4
RGBrgb(151, 49, 180)
HSLhsl(287, 57%, 45%)
HSVhsv(287, 73%, 71%)
CMYKcmyk(16.1%, 72.8%, 0%, 29.4%)
CIE-LABlab(41.33, 60.33, -49.39)
CIE-LCHlch(41.33, 77.97, 320.69°)
OKLaboklab(52.08% 0.1523 -0.1388)
OKLCHoklch(52.08% 0.206 317.7)
XYZxyz(22.0978, 12.0722, 44.3373)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731B4 #4EB431
analogous
#5631B4 #9731B4 #B4318F
triadic
#9731B4 #B49731 #31B497
tetradic
#9731B4 #B45631 #4EB431 #318FB4
square
#9731B4 #B45631 #4EB431 #318FB4
split-complementary
#9731B4 #8FB431 #31B456
monochromatic
#461754 #6F2484 #9731B4 #B452D0 #C982DD

Accessibility & contrast

On white

6.15
#9731B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9731B4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731B4#FFFFFF#000000##FFFFFF
##9731B41.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#3565B1
Tritanopia (blue-blind)
#964C70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9731b4;
/* rgb */ color: rgb(151, 49, 180);
/* oklch */ color: oklch(52.1% 0.206 317.7);
Tailwind
colors: {
  custom: {
    50: '#b973cb',
    500: '#9731b4',
    950: '#000000',
  },
}
SCSS
$custom: #9731b4;
$custom-light: #b973cb;
$custom-dark: #000000;
JSON
{
  "hex": "#9731b4",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 286.718,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.20609,
    "h": 317.7
  },
  "luminance": 0.12071
}

Semantic roles & 50–950 ramp

primary
#9731B4
secondary
#8BC67B
accent
#E04769
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9731B4

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

Preview Lab → · Contrast checker → · Palette generator →

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