#731D9C#731D9C

#731D9C is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.193 H 311.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#731D9C
RGBrgb(115, 29, 156)
HSLhsl(281, 69%, 36%)
HSVhsv(281, 81%, 61%)
CMYKcmyk(26.3%, 81.4%, 0%, 38.8%)
CIE-LABlab(31.63, 55.62, -50.94)
CIE-LCHlch(31.63, 75.42, 317.51°)
OKLaboklab(43.59% 0.1276 -0.1444)
OKLCHoklch(43.59% 0.193 311.5)
XYZxyz(13.5092, 6.9242, 32.0709)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D9C #469C1D
analogous
#341D9C #731D9C #9C1D86
triadic
#731D9C #9C731D #1D9C73
tetradic
#731D9C #9C341D #469C1D #1D869C
square
#731D9C #9C341D #469C1D #1D869C
split-complementary
#731D9C #869C1D #1D9C34
monochromatic
#270A35 #4D1368 #731D9C #9927D0 #B254DF

Accessibility & contrast

On white

8.81
#731D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731D9C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D9C#FFFFFF#000000##FFFFFF
##731D9C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#6E3D5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731d9c;
/* rgb */ color: rgb(115, 29, 156);
/* oklch */ color: oklch(43.6% 0.193 311.5);
Tailwind
colors: {
  custom: {
    50: '#a065ba',
    500: '#731d9c',
    950: '#000000',
  },
}
SCSS
$custom: #731d9c;
$custom-light: #a065ba;
$custom-dark: #000000;
JSON
{
  "hex": "#731d9c",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 280.63,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43585,
    "c": 0.19274,
    "h": 311.5
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#731D9C
secondary
#77C252
accent
#EB3C75
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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