#9731CC#9731CC

#9731CC is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.8% C 0.228 H 310.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9731CC
RGBrgb(151, 49, 204)
HSLhsl(279, 61%, 50%)
HSVhsv(279, 76%, 80%)
CMYKcmyk(26%, 76%, 0%, 20%)
CIE-LABlab(42.97, 65.15, -60.78)
CIE-LCHlch(42.97, 89.10, 316.99°)
OKLaboklab(53.76% 0.1489 -0.1722)
OKLCHoklch(53.76% 0.228 310.8)
XYZxyz(24.7578, 13.1362, 58.3464)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731CC #66CC31
analogous
#4A31CC #9731CC #CC31B4
triadic
#9731CC #CC9731 #31CC97
tetradic
#9731CC #CC4A31 #66CC31 #31B4CC
square
#9731CC #CC4A31 #66CC31 #31B4CC
split-complementary
#9731CC #B4CC31 #31CC4A
monochromatic
#4E1969 #72259B #9731CC #B061D9 #C992E5

Accessibility & contrast

On white

5.79
#9731CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9731CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731CC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731CC#FFFFFF#000000##FFFFFF
##9731CC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0867C9
Tritanopia (blue-blind)
#90567D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9731cc;
/* rgb */ color: rgb(151, 49, 204);
/* oklch */ color: oklch(53.8% 0.228 310.8);
Tailwind
colors: {
  custom: {
    50: '#bb74dc',
    500: '#9731cc',
    950: '#000000',
  },
}
SCSS
$custom: #9731cc;
$custom-light: #bb74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9731cc",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 279.484,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53762,
    "c": 0.22766,
    "h": 310.8
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

primary
#9731CC
secondary
#A1D089
accent
#E4437A
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9731CC

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

Preview Lab → · Contrast checker → · Palette generator →

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