#731D87#731D87

#731D87 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.174 H 319.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#731D87
RGBrgb(115, 29, 135)
HSLhsl(289, 65%, 32%)
HSVhsv(289, 79%, 53%)
CMYKcmyk(14.8%, 78.5%, 0%, 47.1%)
CIE-LABlab(30.09, 51.34, -40.50)
CIE-LCHlch(30.09, 65.39, 321.73°)
OKLaboklab(42.01% 0.1315 -0.1138)
OKLCHoklch(42.01% 0.174 319.1)
XYZxyz(11.8822, 6.2734, 23.5020)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D87 #31871D
analogous
#3E1D87 #731D87 #871D66
triadic
#731D87 #87731D #1D8773
tetradic
#731D87 #873E1D #31871D #1D6687
square
#731D87 #873E1D #31871D #1D6687
split-complementary
#731D87 #66871D #1D873E
monochromatic
#1D0722 #481255 #731D87 #9E28B9 #BC47D7

Accessibility & contrast

On white

9.31
#731D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#731D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D87
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D87#FFFFFF#000000##FFFFFF
##731D871.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#254A85
Tritanopia (blue-blind)
#733451
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731d87;
/* rgb */ color: rgb(115, 29, 135);
/* oklch */ color: oklch(42.0% 0.174 319.1);
Tailwind
colors: {
  custom: {
    50: '#9f64aa',
    500: '#731d87',
    950: '#000000',
  },
}
SCSS
$custom: #731d87;
$custom-light: #9f64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#731d87",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 288.679,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42013,
    "c": 0.17385,
    "h": 319.1
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#731D87
secondary
#5CB946
accent
#E84060
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731D87

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

Preview Lab → · Contrast checker → · Palette generator →

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