#731F7D#731F7D

#731F7D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.163 H 323.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#731F7D
RGBrgb(115, 31, 125)
HSLhsl(294, 60%, 31%)
HSVhsv(294, 75%, 49%)
CMYKcmyk(8%, 75.2%, 0%, 51%)
CIE-LABlab(29.68, 48.69, -34.90)
CIE-LCHlch(29.68, 59.90, 324.36°)
OKLaboklab(41.51% 0.1304 -0.0974)
OKLCHoklch(41.51% 0.163 323.3)
XYZxyz(11.2615, 6.1062, 19.9835)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F7D #297D1F
analogous
#441F7D #731F7D #7D1F58
triadic
#731F7D #7D731F #1F7D73
tetradic
#731F7D #7D441F #297D1F #1F587D
square
#731F7D #7D441F #297D1F #1F587D
split-complementary
#731F7D #587D1F #1F7D44
monochromatic
#19071B #46134C #731F7D #A02BAE #C245D1

Accessibility & contrast

On white

9.46
#731F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#731F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F7D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F7D#FFFFFF#000000##FFFFFF
##731F7D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#2F497B
Tritanopia (blue-blind)
#75304C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731f7d;
/* rgb */ color: rgb(115, 31, 125);
/* oklch */ color: oklch(41.5% 0.163 323.3);
Tailwind
colors: {
  custom: {
    50: '#9e64a3',
    500: '#731f7d',
    950: '#000000',
  },
}
SCSS
$custom: #731f7d;
$custom-light: #9e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#731f7d",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 293.617,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41508,
    "c": 0.16279,
    "h": 323.3
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#731F7D
secondary
#53B048
accent
#E34455
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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