#731F7A#731F7A

#731F7A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.160 H 324.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#731F7A
RGBrgb(115, 31, 122)
HSLhsl(295, 59%, 30%)
HSVhsv(295, 75%, 48%)
CMYKcmyk(5.7%, 74.6%, 0%, 52.2%)
CIE-LABlab(29.49, 48.12, -33.31)
CIE-LCHlch(29.49, 58.53, 325.31°)
OKLaboklab(41.31% 0.1306 -0.0927)
OKLCHoklch(41.31% 0.16 324.6)
XYZxyz(11.0728, 6.0306, 18.9894)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F7A #267A1F
analogous
#461F7A #731F7A #7A1F53
triadic
#731F7A #7A731F #1F7A73
tetradic
#731F7A #7A461F #267A1F #1F537A
square
#731F7A #7A461F #267A1F #1F537A
split-complementary
#731F7A #537A1F #1F7A46
monochromatic
#170618 #451349 #731F7A #A12BAB #C544CF

Accessibility & contrast

On white

9.52
#731F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#731F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F7A
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F7A#FFFFFF#000000##FFFFFF
##731F7A1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023F7D
Deuteranopia (green-blind)
#314978
Tritanopia (blue-blind)
#752F4B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731f7a;
/* rgb */ color: rgb(115, 31, 122);
/* oklch */ color: oklch(41.3% 0.160 324.6);
Tailwind
colors: {
  custom: {
    50: '#9e64a1',
    500: '#731f7a',
    950: '#000000',
  },
}
SCSS
$custom: #731f7a;
$custom-light: #9e64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#731f7a",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 295.385,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.41312,
    "c": 0.16016,
    "h": 324.6
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#731F7A
secondary
#4FAD47
accent
#E34551
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #731F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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