#731B7D#731B7D

#731B7D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.167 H 323.4°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#731B7D
RGBrgb(115, 27, 125)
HSLhsl(294, 64%, 30%)
HSVhsv(294, 78%, 49%)
CMYKcmyk(8%, 78.4%, 0%, 51%)
CIE-LABlab(29.18, 50.10, -35.69)
CIE-LCHlch(29.18, 61.52, 324.53°)
OKLaboklab(41.16% 0.1343 -0.0997)
OKLCHoklch(41.16% 0.167 323.4)
XYZxyz(11.1635, 5.9101, 19.9508)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B7D #257D1B
analogous
#421B7D #731B7D #7D1B56
triadic
#731B7D #7D731B #1B7D73
tetradic
#731B7D #7D421B #257D1B #1B567D
square
#731B7D #7D421B #257D1B #1B567D
split-complementary
#731B7D #567D1B #1B7D42
monochromatic
#170519 #45104B #731B7D #A126AF #C63DD5

Accessibility & contrast

On white

9.63
#731B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#731B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B7D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B7D#FFFFFF#000000##FFFFFF
##731B7D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#2C487B
Tritanopia (blue-blind)
#752E4B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731b7d;
/* rgb */ color: rgb(115, 27, 125);
/* oklch */ color: oklch(41.2% 0.167 323.4);
Tailwind
colors: {
  custom: {
    50: '#9f62a3',
    500: '#731b7d',
    950: '#000000',
  },
}
SCSS
$custom: #731b7d;
$custom-light: #9f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#731b7d",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 293.878,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41156,
    "c": 0.16724,
    "h": 323.4
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#731B7D
secondary
#4EB143
accent
#E74051
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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