#731E87#731E87

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

Color values

HEX#731E87
RGBrgb(115, 30, 135)
HSLhsl(289, 64%, 32%)
HSVhsv(289, 78%, 53%)
CMYKcmyk(14.8%, 77.8%, 0%, 47.1%)
CIE-LABlab(30.21, 50.99, -40.31)
CIE-LCHlch(30.21, 64.99, 321.67°)
OKLaboklab(42.1% 0.1305 -0.1132)
OKLCHoklch(42.1% 0.173 319.1)
XYZxyz(11.9071, 6.3232, 23.5103)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E87 #32871E
analogous
#3E1E87 #731E87 #871E67
triadic
#731E87 #87731E #1E8773
tetradic
#731E87 #873E1E #32871E #1E6787
square
#731E87 #873E1E #32871E #1E6787
split-complementary
#731E87 #67871E #1E873E
monochromatic
#1E0823 #481355 #731E87 #9E29B9 #BC49D7

Accessibility & contrast

On white

9.27
#731E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#731E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E87
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E87#FFFFFF#000000##FFFFFF
##731E871.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731e87;
/* rgb */ color: rgb(115, 30, 135);
/* oklch */ color: oklch(42.1% 0.173 319.1);
Tailwind
colors: {
  custom: {
    50: '#9f64aa',
    500: '#731e87',
    950: '#000000',
  },
}
SCSS
$custom: #731e87;
$custom-light: #9f64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#731e87",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 288.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.421,
    "c": 0.17279,
    "h": 319.1
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#731E87
secondary
#5DB948
accent
#E74161
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731E87

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

Preview Lab → · Contrast checker → · Palette generator →

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