#9731C9#9731C9

#9731C9 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.225 H 311.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9731C9
RGBrgb(151, 49, 201)
HSLhsl(280, 61%, 49%)
HSVhsv(280, 76%, 79%)
CMYKcmyk(24.9%, 75.6%, 0%, 21.2%)
CIE-LABlab(42.75, 64.53, -59.39)
CIE-LCHlch(42.75, 87.70, 317.38°)
OKLaboklab(53.54% 0.1494 -0.1681)
OKLCHoklch(53.54% 0.225 311.6)
XYZxyz(24.4014, 12.9936, 56.4696)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731C9 #63C931
analogous
#4B31C9 #9731C9 #C931AF
triadic
#9731C9 #C99731 #31C997
tetradic
#9731C9 #C94B31 #63C931 #31AFC9
square
#9731C9 #C94B31 #63C931 #31AFC9
split-complementary
#9731C9 #AFC931 #31C94B
monochromatic
#4D1967 #722598 #9731C9 #B05FD8 #C990E4

Accessibility & contrast

On white

5.84
#9731C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9731C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731C9
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731C9#FFFFFF#000000##FFFFFF
##9731C91.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#1467C6
Tritanopia (blue-blind)
#91557C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9731c9;
/* rgb */ color: rgb(151, 49, 201);
/* oklch */ color: oklch(53.5% 0.225 311.6);
Tailwind
colors: {
  custom: {
    50: '#ba74da',
    500: '#9731c9',
    950: '#000000',
  },
}
SCSS
$custom: #9731c9;
$custom-light: #ba74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9731c9",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 280.263,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53544,
    "c": 0.22495,
    "h": 311.6
  },
  "luminance": 0.12993
}

Semantic roles & 50–950 ramp

primary
#9731C9
secondary
#9FCF87
accent
#E44479
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9731C9

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

Preview Lab → · Contrast checker → · Palette generator →

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