#731F71#731F71

#731F71 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.152 H 328.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#731F71
RGBrgb(115, 31, 113)
HSLhsl(301, 58%, 29%)
HSVhsv(301, 73%, 45%)
CMYKcmyk(0%, 73%, 1.7%, 54.9%)
CIE-LABlab(28.95, 46.48, -28.45)
CIE-LCHlch(28.95, 54.50, 328.53°)
OKLaboklab(40.75% 0.1306 -0.0786)
OKLCHoklch(40.75% 0.152 328.9)
XYZxyz(10.5408, 5.8178, 16.1874)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F71 #1F7321
analogous
#4B1F73 #731F71 #731F47
triadic
#731F71 #71731F #1F7173
tetradic
#731F71 #734B1F #1F7321 #1F4773
square
#731F71 #734B1F #1F7321 #1F4773
split-complementary
#731F71 #47731F #1F734B
monochromatic
#180618 #431242 #731F71 #A32CA0 #CC41C8

Accessibility & contrast

On white

9.71
#731F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#731F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F71
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F71#FFFFFF#000000##FFFFFF
##731F711.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#36486F
Tritanopia (blue-blind)
#772B46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #731f71;
/* rgb */ color: rgb(115, 31, 113);
/* oklch */ color: oklch(40.7% 0.152 328.9);
Tailwind
colors: {
  custom: {
    50: '#9e639a',
    500: '#731f71',
    950: '#000000',
  },
}
SCSS
$custom: #731f71;
$custom-light: #9e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#731f71",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 301.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.15243,
    "h": 328.9
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#731F71
secondary
#47A749
accent
#E14B47
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731F71

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

Preview Lab → · Contrast checker → · Palette generator →

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