#731F96#731F96

#731F96 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.185 H 313.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#731F96
RGBrgb(115, 31, 150)
HSLhsl(282, 66%, 35%)
HSVhsv(282, 79%, 59%)
CMYKcmyk(23.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(31.41, 53.68, -47.64)
CIE-LCHlch(31.41, 71.78, 318.41°)
OKLaboklab(43.29% 0.1273 -0.1347)
OKLCHoklch(43.29% 0.185 313.4)
XYZxyz(13.0643, 6.8272, 29.4778)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F96 #42961F
analogous
#371F96 #731F96 #961F7D
triadic
#731F96 #96731F #1F9673
tetradic
#731F96 #96371F #42961F #1F7D96
square
#731F96 #96371F #42961F #1F7D96
split-complementary
#731F96 #7D961F #1F9637
monochromatic
#250A31 #4C1563 #731F96 #9A29C9 #B454DC

Accessibility & contrast

On white

8.88
#731F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#731F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F96
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F96#FFFFFF#000000##FFFFFF
##731F961.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#104C94
Tritanopia (blue-blind)
#6F3B5A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731f96;
/* rgb */ color: rgb(115, 31, 150);
/* oklch */ color: oklch(43.3% 0.185 313.4);
Tailwind
colors: {
  custom: {
    50: '#a065b6',
    500: '#731f96',
    950: '#000000',
  },
}
SCSS
$custom: #731f96;
$custom-light: #a065b6;
$custom-dark: #000000;
JSON
{
  "hex": "#731f96",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 282.353,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.18534,
    "h": 313.4
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#731F96
secondary
#72BF52
accent
#E93F71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F96

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

Preview Lab → · Contrast checker → · Palette generator →

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