#731A9B#731A9B

#731A9B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.194 H 312.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#731A9B
RGBrgb(115, 26, 155)
HSLhsl(281, 71%, 35%)
HSVhsv(281, 83%, 61%)
CMYKcmyk(25.8%, 83.2%, 0%, 39.2%)
CIE-LABlab(31.23, 56.35, -50.99)
CIE-LCHlch(31.23, 75.99, 317.86°)
OKLaboklab(43.28% 0.1301 -0.1445)
OKLCHoklch(43.28% 0.194 312)
XYZxyz(13.3549, 6.7506, 31.6035)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731A9B #429B1A
analogous
#321A9B #731A9B #9B1A83
triadic
#731A9B #9B731A #1A9B73
tetradic
#731A9B #9B321A #429B1A #1A839B
square
#731A9B #9B321A #429B1A #1A839B
split-complementary
#731A9B #839B1A #1A9B32
monochromatic
#250832 #4C1167 #731A9B #9A23CF #B44EE1

Accessibility & contrast

On white

8.94
#731A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#731A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731A9B
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731A9B#FFFFFF#000000##FFFFFF
##731A9B1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#6E3C5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #731a9b;
/* rgb */ color: rgb(115, 26, 155);
/* oklch */ color: oklch(43.3% 0.194 312.0);
Tailwind
colors: {
  custom: {
    50: '#a064b9',
    500: '#731a9b',
    950: '#000000',
  },
}
SCSS
$custom: #731a9b;
$custom-light: #a064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731a9b",
  "rgb": {
    "r": 115,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 281.395,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4328,
    "c": 0.19448,
    "h": 312
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#731A9B
secondary
#72C44D
accent
#EE3A72
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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