#9731DB#9731DB

#9731DB is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.9% C 0.241 H 307.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9731DB
RGBrgb(151, 49, 219)
HSLhsl(276, 70%, 53%)
HSVhsv(276, 78%, 86%)
CMYKcmyk(31.1%, 77.6%, 0%, 14.1%)
CIE-LABlab(44.08, 68.29, -67.61)
CIE-LCHlch(44.08, 96.10, 315.28°)
OKLaboklab(54.89% 0.1457 -0.1923)
OKLCHoklch(54.89% 0.241 307.2)
XYZxyz(26.6442, 13.8907, 68.2816)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9731DB #75DB31
analogous
#4231DB #9731DB #DB31CA
triadic
#9731DB #DB9731 #31DB97
tetradic
#9731DB #DB4231 #75DB31 #31CADB
square
#9731DB #DB4231 #75DB31 #31CADB
split-complementary
#9731DB #CADB31 #31DB42
monochromatic
#53167C #761FB0 #9731DB #B165E4 #CC99ED

Accessibility & contrast

On white

5.56
#9731DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9731DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9731DB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9731DB#FFFFFF#000000##FFFFFF
##9731DB1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#8B5D86
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9731db;
/* rgb */ color: rgb(151, 49, 219);
/* oklch */ color: oklch(54.9% 0.241 307.2);
Tailwind
colors: {
  custom: {
    50: '#bc75e7',
    500: '#9731db',
    950: '#000000',
  },
}
SCSS
$custom: #9731db;
$custom-light: #bc75e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9731db",
  "rgb": {
    "r": 151,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 276,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.24129,
    "h": 307.2
  },
  "luminance": 0.1389
}

Semantic roles & 50–950 ramp

primary
#9731DB
secondary
#ADD98F
accent
#ED3B82
background
#FCF7FE
surface
#F8EDFD
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9731DB

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

Preview Lab → · Contrast checker → · Palette generator →

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