#731D7E#731D7E

#731D7E is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 322.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#731D7E
RGBrgb(115, 29, 126)
HSLhsl(293, 63%, 30%)
HSVhsv(293, 77%, 49%)
CMYKcmyk(8.7%, 77%, 0%, 50.6%)
CIE-LABlab(29.49, 49.60, -35.83)
CIE-LCHlch(29.49, 61.19, 324.15°)
OKLaboklab(41.39% 0.1324 -0.1001)
OKLCHoklch(41.39% 0.166 322.9)
XYZxyz(11.2751, 6.0306, 20.3048)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D7E #287E1D
analogous
#421D7E #731D7E #7E1D58
triadic
#731D7E #7E731D #1D7E73
tetradic
#731D7E #7E421D #287E1D #1D587E
square
#731D7E #7E421D #287E1D #1D587E
split-complementary
#731D7E #587E1D #1D7E42
monochromatic
#18061B #46124C #731D7E #A028B0 #C342D3

Accessibility & contrast

On white

9.52
#731D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731D7E
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D7E#FFFFFF#000000##FFFFFF
##731D7E1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#2D497C
Tritanopia (blue-blind)
#752F4C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731d7e;
/* rgb */ color: rgb(115, 29, 126);
/* oklch */ color: oklch(41.4% 0.166 322.9);
Tailwind
colors: {
  custom: {
    50: '#9f63a4',
    500: '#731d7e',
    950: '#000000',
  },
}
SCSS
$custom: #731d7e;
$custom-light: #9f63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#731d7e",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 293.196,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41393,
    "c": 0.16594,
    "h": 322.9
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#731D7E
secondary
#52B145
accent
#E64255
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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