#9731C2#9731C2

#9731C2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.219 H 313.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9731C2
RGBrgb(151, 49, 194)
HSLhsl(282, 60%, 48%)
HSVhsv(282, 75%, 76%)
CMYKcmyk(22.2%, 74.7%, 0%, 23.9%)
CIE-LABlab(42.26, 63.11, -56.11)
CIE-LCHlch(42.26, 84.44, 318.36°)
OKLaboklab(53.04% 0.1506 -0.1585)
OKLCHoklch(53.04% 0.219 313.5)
XYZxyz(23.5967, 12.6717, 52.2314)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731C2 #5CC231
analogous
#4E31C2 #9731C2 #C231A4
triadic
#9731C2 #C29731 #31C297
tetradic
#9731C2 #C24E31 #5CC231 #31A4C2
square
#9731C2 #C24E31 #5CC231 #31A4C2
split-complementary
#9731C2 #A4C231 #31C24E
monochromatic
#4B1860 #712591 #9731C2 #B15BD6 #C88CE2

Accessibility & contrast

On white

5.94
#9731C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9731C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731C2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731C2#FFFFFF#000000##FFFFFF
##9731C21.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#2366BF
Tritanopia (blue-blind)
#935278
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9731c2;
/* rgb */ color: rgb(151, 49, 194);
/* oklch */ color: oklch(53.0% 0.219 313.5);
Tailwind
colors: {
  custom: {
    50: '#ba74d5',
    500: '#9731c2',
    950: '#000000',
  },
}
SCSS
$custom: #9731c2;
$custom-light: #ba74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9731c2",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 282.207,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53043,
    "c": 0.21862,
    "h": 313.5
  },
  "luminance": 0.12671
}

Semantic roles & 50–950 ramp

primary
#9731C2
secondary
#99CC83
accent
#E34574
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9731C2

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

Preview Lab → · Contrast checker → · Palette generator →

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