#9731C0#9731C0

#9731C0 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.217 H 314.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9731C0
RGBrgb(151, 49, 192)
HSLhsl(283, 59%, 47%)
HSVhsv(283, 74%, 75%)
CMYKcmyk(21.4%, 74.5%, 0%, 24.7%)
CIE-LABlab(42.13, 62.71, -55.16)
CIE-LCHlch(42.13, 83.52, 318.66°)
OKLaboklab(52.9% 0.1509 -0.1557)
OKLCHoklch(52.9% 0.217 314.1)
XYZxyz(23.3736, 12.5825, 51.0564)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731C0 #5AC031
analogous
#4F31C0 #9731C0 #C031A2
triadic
#9731C0 #C09731 #31C097
tetradic
#9731C0 #C04F31 #5AC031 #31A2C0
square
#9731C0 #C04F31 #5AC031 #31A2C0
split-complementary
#9731C0 #A2C031 #31C04F
monochromatic
#4A185E #71258F #9731C0 #B159D5 #C88AE1

Accessibility & contrast

On white

5.97
#9731C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9731C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731C0
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731C0#FFFFFF#000000##FFFFFF
##9731C01.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#2766BD
Tritanopia (blue-blind)
#935177
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9731c0;
/* rgb */ color: rgb(151, 49, 192);
/* oklch */ color: oklch(52.9% 0.217 314.1);
Tailwind
colors: {
  custom: {
    50: '#ba74d4',
    500: '#9731c0',
    950: '#000000',
  },
}
SCSS
$custom: #9731c0;
$custom-light: #ba74d4;
$custom-dark: #000000;
JSON
{
  "hex": "#9731c0",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 282.797,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52903,
    "c": 0.21683,
    "h": 314.1
  },
  "luminance": 0.12582
}

Semantic roles & 50–950 ramp

primary
#9731C0
secondary
#97CB82
accent
#E34572
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9731C0

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

Preview Lab → · Contrast checker → · Palette generator →

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