#731D97#731D97

#731D97 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.188 H 313.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#731D97
RGBrgb(115, 29, 151)
HSLhsl(282, 68%, 35%)
HSVhsv(282, 81%, 59%)
CMYKcmyk(23.8%, 80.8%, 0%, 40.8%)
CIE-LABlab(31.25, 54.57, -48.51)
CIE-LCHlch(31.25, 73.02, 318.36°)
OKLaboklab(43.2% 0.1287 -0.1373)
OKLCHoklch(43.2% 0.188 313.2)
XYZxyz(13.0945, 6.7584, 29.8869)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D97 #41971D
analogous
#361D97 #731D97 #971D7E
triadic
#731D97 #97731D #1D9773
tetradic
#731D97 #97361D #41971D #1D7E97
square
#731D97 #97361D #41971D #1D7E97
split-complementary
#731D97 #7E971D #1D9736
monochromatic
#250930 #4C1364 #731D97 #9A27CA #B451DE

Accessibility & contrast

On white

8.93
#731D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#731D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D97
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D97#FFFFFF#000000##FFFFFF
##731D971.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#0A4B95
Tritanopia (blue-blind)
#6F3B5A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731d97;
/* rgb */ color: rgb(115, 29, 151);
/* oklch */ color: oklch(43.2% 0.188 313.2);
Tailwind
colors: {
  custom: {
    50: '#a064b6',
    500: '#731d97',
    950: '#000000',
  },
}
SCSS
$custom: #731d97;
$custom-light: #a064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#731d97",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 282.295,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43196,
    "c": 0.1882,
    "h": 313.2
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

primary
#731D97
secondary
#71C04F
accent
#EB3D70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731D97

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

Preview Lab → · Contrast checker → · Palette generator →

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