#731B9B#731B9B

#731B9B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.194 H 311.9°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#731B9B
RGBrgb(115, 27, 155)
HSLhsl(281, 70%, 36%)
HSVhsv(281, 83%, 61%)
CMYKcmyk(25.8%, 82.6%, 0%, 39.2%)
CIE-LABlab(31.34, 56.05, -50.82)
CIE-LCHlch(31.34, 75.65, 317.80°)
OKLaboklab(43.35% 0.1294 -0.144)
OKLCHoklch(43.35% 0.194 311.9)
XYZxyz(13.3775, 6.7956, 31.6110)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B9B #439B1B
analogous
#331B9B #731B9B #9B1B83
triadic
#731B9B #9B731B #1B9B73
tetradic
#731B9B #9B331B #439B1B #1B839B
square
#731B9B #9B331B #439B1B #1B839B
split-complementary
#731B9B #839B1B #1B9B33
monochromatic
#260933 #4C1267 #731B9B #9A24CF #B350E0

Accessibility & contrast

On white

8.90
#731B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#731B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B9B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B9B#FFFFFF#000000##FFFFFF
##731B9B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#6E3C5C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731b9b;
/* rgb */ color: rgb(115, 27, 155);
/* oklch */ color: oklch(43.4% 0.194 311.9);
Tailwind
colors: {
  custom: {
    50: '#a064b9',
    500: '#731b9b',
    950: '#000000',
  },
}
SCSS
$custom: #731b9b;
$custom-light: #a064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731b9b",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 281.25,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43353,
    "c": 0.19362,
    "h": 311.9
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#731B9B
secondary
#73C34F
accent
#ED3B72
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731B9B

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

Preview Lab → · Contrast checker → · Palette generator →

#731B9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva