#731D8F#731D8F

#731D8F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.181 H 316.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#731D8F
RGBrgb(115, 29, 143)
HSLhsl(285, 66%, 34%)
HSVhsv(285, 80%, 56%)
CMYKcmyk(19.6%, 79.7%, 0%, 43.9%)
CIE-LABlab(30.66, 52.93, -44.55)
CIE-LCHlch(30.66, 69.19, 319.91°)
OKLaboklab(42.59% 0.1303 -0.1257)
OKLCHoklch(42.59% 0.181 316)
XYZxyz(12.4667, 6.5072, 26.5806)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D8F #398F1D
analogous
#3A1D8F #731D8F #8F1D72
triadic
#731D8F #8F731D #1D8F73
tetradic
#731D8F #8F3A1D #398F1D #1D728F
square
#731D8F #8F3A1D #398F1D #1D728F
split-complementary
#731D8F #728F1D #1D8F3A
monochromatic
#210829 #4A135C #731D8F #9C27C2 #B84CDB

Accessibility & contrast

On white

9.12
#731D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#731D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D8F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D8F#FFFFFF#000000##FFFFFF
##731D8F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#1B4A8D
Tritanopia (blue-blind)
#713756
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731d8f;
/* rgb */ color: rgb(115, 29, 143);
/* oklch */ color: oklch(42.6% 0.181 316.0);
Tailwind
colors: {
  custom: {
    50: '#9f64b0',
    500: '#731d8f',
    950: '#000000',
  },
}
SCSS
$custom: #731d8f;
$custom-light: #9f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731d8f",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 285.263,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42592,
    "c": 0.18099,
    "h": 316
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#731D8F
secondary
#67BD4B
accent
#E93F68
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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