#731A8D#731A8D

#731A8D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.182 H 317.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#731A8D
RGBrgb(115, 26, 141)
HSLhsl(286, 69%, 33%)
HSVhsv(286, 82%, 55%)
CMYKcmyk(18.4%, 81.6%, 0%, 44.7%)
CIE-LABlab(30.17, 53.51, -44.10)
CIE-LCHlch(30.17, 69.34, 320.51°)
OKLaboklab(42.21% 0.1331 -0.1243)
OKLCHoklch(42.21% 0.182 317)
XYZxyz(12.2466, 6.3072, 25.7665)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731A8D #348D1A
analogous
#3A1A8D #731A8D #8D1A6D
triadic
#731A8D #8D731A #1A8D73
tetradic
#731A8D #8D3A1A #348D1A #1A6D8D
square
#731A8D #8D3A1A #348D1A #1A6D8D
split-complementary
#731A8D #6D8D1A #1A8D3A
monochromatic
#1F0726 #491059 #731A8D #9D24C1 #BA45DD

Accessibility & contrast

On white

9.29
#731A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#731A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731A8D
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731A8D#FFFFFF#000000##FFFFFF
##731A8D1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#1B4A8B
Tritanopia (blue-blind)
#723554
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731a8d;
/* rgb */ color: rgb(115, 26, 141);
/* oklch */ color: oklch(42.2% 0.182 317.0);
Tailwind
colors: {
  custom: {
    50: '#9f63af',
    500: '#731a8d',
    950: '#000000',
  },
}
SCSS
$custom: #731a8d;
$custom-light: #9f63af;
$custom-dark: #000000;
JSON
{
  "hex": "#731a8d",
  "rgb": {
    "r": 115,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 286.435,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.18211,
    "h": 317
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#731A8D
secondary
#60BE45
accent
#EC3C64
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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