#731A7B#731A7B

#731A7B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.167 H 324.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#731A7B
RGBrgb(115, 26, 123)
HSLhsl(295, 65%, 29%)
HSVhsv(295, 79%, 48%)
CMYKcmyk(6.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(28.94, 50.07, -34.82)
CIE-LCHlch(28.94, 60.98, 325.18°)
OKLaboklab(40.94% 0.1354 -0.0971)
OKLCHoklch(40.94% 0.167 324.3)
XYZxyz(11.0145, 5.8144, 19.2772)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731A7B #227B1A
analogous
#431A7B #731A7B #7B1A53
triadic
#731A7B #7B731A #1A7B73
tetradic
#731A7B #7B431A #227B1A #1A537B
square
#731A7B #7B431A #227B1A #1A537B
split-complementary
#731A7B #537B1A #1A7B43
monochromatic
#180519 #440F48 #731A7B #A225AE #C93AD5

Accessibility & contrast

On white

9.71
#731A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#731A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731A7B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731A7B#FFFFFF#000000##FFFFFF
##731A7B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#2D4879
Tritanopia (blue-blind)
#752C4A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #731a7b;
/* rgb */ color: rgb(115, 26, 123);
/* oklch */ color: oklch(40.9% 0.167 324.3);
Tailwind
colors: {
  custom: {
    50: '#9f62a2',
    500: '#731a7b',
    950: '#000000',
  },
}
SCSS
$custom: #731a7b;
$custom-light: #9f62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#731a7b",
  "rgb": {
    "r": 115,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 295.052,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4094,
    "c": 0.1666,
    "h": 324.3
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#731A7B
secondary
#4BAF42
accent
#E8404E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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