#731E7D#731E7D

#731E7D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.164 H 323.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#731E7D
RGBrgb(115, 30, 125)
HSLhsl(294, 61%, 30%)
HSVhsv(294, 76%, 49%)
CMYKcmyk(8%, 76%, 0%, 51%)
CIE-LABlab(29.55, 49.05, -35.11)
CIE-LCHlch(29.55, 60.32, 324.41°)
OKLaboklab(41.42% 0.1314 -0.098)
OKLCHoklch(41.42% 0.164 323.3)
XYZxyz(11.2358, 6.0547, 19.9749)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E7D #287D1E
analogous
#431E7D #731E7D #7D1E57
triadic
#731E7D #7D731E #1E7D73
tetradic
#731E7D #7D431E #287D1E #1E577D
square
#731E7D #7D431E #287D1E #1E577D
split-complementary
#731E7D #577D1E #1E7D43
monochromatic
#18061A #46124C #731E7D #A02AAE #C343D2

Accessibility & contrast

On white

9.50
#731E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#731E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E7D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E7D#FFFFFF#000000##FFFFFF
##731E7D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#2E497B
Tritanopia (blue-blind)
#752F4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731e7d;
/* rgb */ color: rgb(115, 30, 125);
/* oklch */ color: oklch(41.4% 0.164 323.3);
Tailwind
colors: {
  custom: {
    50: '#9f64a3',
    500: '#731e7d',
    950: '#000000',
  },
}
SCSS
$custom: #731e7d;
$custom-light: #9f64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#731e7d",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 293.684,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41416,
    "c": 0.16395,
    "h": 323.3
  },
  "luminance": 0.06054
}

Semantic roles & 50–950 ramp

primary
#731E7D
secondary
#52B046
accent
#E44354
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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