#731F87#731F87

#731F87 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.172 H 319.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#731F87
RGBrgb(115, 31, 135)
HSLhsl(288, 63%, 33%)
HSVhsv(288, 77%, 53%)
CMYKcmyk(14.8%, 77%, 0%, 47.1%)
CIE-LABlab(30.34, 50.63, -40.11)
CIE-LCHlch(30.34, 64.59, 321.61°)
OKLaboklab(42.19% 0.1296 -0.1126)
OKLCHoklch(42.19% 0.172 319)
XYZxyz(11.9328, 6.3747, 23.5189)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F87 #33871F
analogous
#3F1F87 #731F87 #871F67
triadic
#731F87 #87731F #1F8773
tetradic
#731F87 #873F1F #33871F #1F6787
square
#731F87 #873F1F #33871F #1F6787
split-complementary
#731F87 #67871F #1F873F
monochromatic
#1E0823 #491455 #731F87 #9D2AB9 #BB4BD6

Accessibility & contrast

On white

9.23
#731F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#731F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F87
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F87#FFFFFF#000000##FFFFFF
##731F871.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#264A85
Tritanopia (blue-blind)
#733552
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731f87;
/* rgb */ color: rgb(115, 31, 135);
/* oklch */ color: oklch(42.2% 0.172 319.0);
Tailwind
colors: {
  custom: {
    50: '#9f64aa',
    500: '#731f87',
    950: '#000000',
  },
}
SCSS
$custom: #731f87;
$custom-light: #9f64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#731f87",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 288.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42188,
    "c": 0.1717,
    "h": 319
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#731F87
secondary
#5FB84A
accent
#E64262
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F87

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

Preview Lab → · Contrast checker → · Palette generator →

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