#731D9B#731D9B

#731D9B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.192 H 311.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#731D9B
RGBrgb(115, 29, 155)
HSLhsl(281, 68%, 36%)
HSVhsv(281, 81%, 61%)
CMYKcmyk(25.8%, 81.3%, 0%, 39.2%)
CIE-LABlab(31.56, 55.41, -50.46)
CIE-LCHlch(31.56, 74.94, 317.68°)
OKLaboklab(43.51% 0.1279 -0.143)
OKLCHoklch(43.51% 0.192 311.8)
XYZxyz(13.4249, 6.8905, 31.6268)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D9B #459B1D
analogous
#341D9B #731D9B #9B1D84
triadic
#731D9B #9B731D #1D9B73
tetradic
#731D9B #9B341D #459B1D #1D849B
square
#731D9B #9B341D #459B1D #1D849B
split-complementary
#731D9B #849B1D #1D9B34
monochromatic
#260A34 #4D1367 #731D9B #9927CF #B353DF

Accessibility & contrast

On white

8.83
#731D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#731D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D9B
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D9B#FFFFFF#000000##FFFFFF
##731D9B1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#6E3D5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731d9b;
/* rgb */ color: rgb(115, 29, 155);
/* oklch */ color: oklch(43.5% 0.192 311.8);
Tailwind
colors: {
  custom: {
    50: '#a065b9',
    500: '#731d9b',
    950: '#000000',
  },
}
SCSS
$custom: #731d9b;
$custom-light: #a065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731d9b",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 280.952,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43506,
    "c": 0.19183,
    "h": 311.8
  },
  "luminance": 0.0689
}

Semantic roles & 50–950 ramp

primary
#731D9B
secondary
#75C252
accent
#EB3C74
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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