#731D78#731D78

#731D78 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.161 H 325.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#731D78
RGBrgb(115, 29, 120)
HSLhsl(297, 61%, 29%)
HSVhsv(297, 76%, 47%)
CMYKcmyk(4.2%, 75.8%, 0%, 52.9%)
CIE-LABlab(29.11, 48.48, -32.65)
CIE-LCHlch(29.11, 58.45, 326.04°)
OKLaboklab(41% 0.1327 -0.0908)
OKLCHoklch(41% 0.161 325.6)
XYZxyz(10.8995, 5.8804, 18.3266)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D78 #22781D
analogous
#461D78 #731D78 #781D50
triadic
#731D78 #78731D #1D7873
tetradic
#731D78 #78461D #22781D #1D5078
square
#731D78 #78461D #22781D #1D5078
split-complementary
#731D78 #50781D #1D7846
monochromatic
#180619 #441147 #731D78 #A229A9 #C93FD1

Accessibility & contrast

On white

9.65
#731D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#731D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D78
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D78#FFFFFF#000000##FFFFFF
##731D781.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7A
Deuteranopia (green-blind)
#314876
Tritanopia (blue-blind)
#762D49
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731d78;
/* rgb */ color: rgb(115, 29, 120);
/* oklch */ color: oklch(41.0% 0.161 325.6);
Tailwind
colors: {
  custom: {
    50: '#9e639f',
    500: '#731d78',
    950: '#000000',
  },
}
SCSS
$custom: #731d78;
$custom-light: #9e639f;
$custom-dark: #000000;
JSON
{
  "hex": "#731d78",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 296.703,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41,
    "c": 0.16077,
    "h": 325.6
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#731D78
secondary
#4BAC45
accent
#E4444C
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731D78

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

Preview Lab → · Contrast checker → · Palette generator →

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