#731B7E#731B7E

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

Color values

HEX#731B7E
RGBrgb(115, 27, 126)
HSLhsl(293, 65%, 30%)
HSVhsv(293, 79%, 49%)
CMYKcmyk(8.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(29.25, 50.29, -36.22)
CIE-LCHlch(29.25, 61.97, 324.24°)
OKLaboklab(41.22% 0.1342 -0.1012)
OKLCHoklch(41.22% 0.168 323)
XYZxyz(11.2277, 5.9357, 20.2889)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B7E #267E1B
analogous
#411B7E #731B7E #7E1B58
triadic
#731B7E #7E731B #1B7E73
tetradic
#731B7E #7E411B #267E1B #1B587E
square
#731B7E #7E411B #267E1B #1B587E
split-complementary
#731B7E #587E1B #1B7E41
monochromatic
#170519 #45104C #731B7E #A126B0 #C53ED6

Accessibility & contrast

On white

9.60
#731B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#731B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B7E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B7E#FFFFFF#000000##FFFFFF
##731B7E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#2C487C
Tritanopia (blue-blind)
#752E4C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731b7e;
/* rgb */ color: rgb(115, 27, 126);
/* oklch */ color: oklch(41.2% 0.168 323.0);
Tailwind
colors: {
  custom: {
    50: '#9f62a4',
    500: '#731b7e',
    950: '#000000',
  },
}
SCSS
$custom: #731b7e;
$custom-light: #9f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#731b7e",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 293.333,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.41223,
    "c": 0.1681,
    "h": 323
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#731B7E
secondary
#4FB243
accent
#E84053
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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