#731D8B#731D8B

#731D8B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.177 H 317.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#731D8B
RGBrgb(115, 29, 139)
HSLhsl(287, 65%, 33%)
HSVhsv(287, 79%, 55%)
CMYKcmyk(17.3%, 79.1%, 0%, 45.5%)
CIE-LABlab(30.37, 52.13, -42.54)
CIE-LCHlch(30.37, 67.28, 320.78°)
OKLaboklab(42.3% 0.1309 -0.1197)
OKLCHoklch(42.3% 0.177 317.6)
XYZxyz(12.1691, 6.3882, 25.0131)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D8B #358B1D
analogous
#3C1D8B #731D8B #8B1D6C
triadic
#731D8B #8B731D #1D8B73
tetradic
#731D8B #8B3C1D #358B1D #1D6C8B
square
#731D8B #8B3C1D #358B1D #1D6C8B
split-complementary
#731D8B #6C8B1D #1D8B3C
monochromatic
#1F0826 #491258 #731D8B #9D28BE #BA49D9

Accessibility & contrast

On white

9.22
#731D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#731D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D8B
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D8B#FFFFFF#000000##FFFFFF
##731D8B1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#723554
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731d8b;
/* rgb */ color: rgb(115, 29, 139);
/* oklch */ color: oklch(42.3% 0.177 317.6);
Tailwind
colors: {
  custom: {
    50: '#9f64ad',
    500: '#731d8b',
    950: '#000000',
  },
}
SCSS
$custom: #731d8b;
$custom-light: #9f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731d8b",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 286.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.423,
    "c": 0.17741,
    "h": 317.6
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#731D8B
secondary
#62BB49
accent
#E83F64
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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