#731B9A#731B9A

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

Color values

HEX#731B9A
RGBrgb(115, 27, 154)
HSLhsl(282, 70%, 35%)
HSVhsv(282, 82%, 60%)
CMYKcmyk(25.3%, 82.5%, 0%, 39.6%)
CIE-LABlab(31.26, 55.84, -50.33)
CIE-LCHlch(31.26, 75.17, 317.97°)
OKLaboklab(43.27% 0.1296 -0.1426)
OKLCHoklch(43.27% 0.193 312.3)
XYZxyz(13.2938, 6.7622, 31.1705)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B9A #429A1B
analogous
#331B9A #731B9A #9A1B81
triadic
#731B9A #9A731B #1B9A73
tetradic
#731B9A #9A331B #429A1B #1B819A
square
#731B9A #9A331B #429A1B #1B819A
split-complementary
#731B9A #819A1B #1B9A33
monochromatic
#250932 #4C1266 #731B9A #9A24CE #B44FE0

Accessibility & contrast

On white

8.93
#731B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731B9A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B9A#FFFFFF#000000##FFFFFF
##731B9A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#6E3B5C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731b9a;
/* rgb */ color: rgb(115, 27, 154);
/* oklch */ color: oklch(43.3% 0.193 312.3);
Tailwind
colors: {
  custom: {
    50: '#a064b9',
    500: '#731b9a',
    950: '#000000',
  },
}
SCSS
$custom: #731b9a;
$custom-light: #a064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731b9a",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 281.575,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43274,
    "c": 0.19273,
    "h": 312.3
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#731B9A
secondary
#72C34E
accent
#ED3B72
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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