#731D7B#731D7B

#731D7B is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.163 H 324.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#731D7B
RGBrgb(115, 29, 123)
HSLhsl(295, 62%, 30%)
HSVhsv(295, 76%, 48%)
CMYKcmyk(6.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(29.30, 49.04, -34.25)
CIE-LCHlch(29.30, 59.82, 325.07°)
OKLaboklab(41.2% 0.1325 -0.0955)
OKLCHoklch(41.2% 0.163 324.2)
XYZxyz(11.0844, 5.9543, 19.3005)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D7B #257B1D
analogous
#441D7B #731D7B #7B1D54
triadic
#731D7B #7B731D #1D7B73
tetradic
#731D7B #7B441D #257B1D #1D547B
square
#731D7B #7B441D #257B1D #1D547B
split-complementary
#731D7B #547B1D #1D7B44
monochromatic
#170619 #451149 #731D7B #A129AD #C640D2

Accessibility & contrast

On white

9.59
#731D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731D7B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D7B#FFFFFF#000000##FFFFFF
##731D7B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731d7b;
/* rgb */ color: rgb(115, 29, 123);
/* oklch */ color: oklch(41.2% 0.163 324.2);
Tailwind
colors: {
  custom: {
    50: '#9f63a2',
    500: '#731d7b',
    950: '#000000',
  },
}
SCSS
$custom: #731d7b;
$custom-light: #9f63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#731d7b",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 294.894,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41195,
    "c": 0.16335,
    "h": 324.2
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#731D7B
secondary
#4EAF45
accent
#E54351
background
#FAF6FA
surface
#F3EBF3
border
#CDC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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