#731B8A#731B8A

#731B8A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.179 H 318.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#731B8A
RGBrgb(115, 27, 138)
HSLhsl(288, 67%, 32%)
HSVhsv(288, 80%, 54%)
CMYKcmyk(16.7%, 80.4%, 0%, 45.9%)
CIE-LABlab(30.07, 52.60, -42.41)
CIE-LCHlch(30.07, 67.56, 321.12°)
OKLaboklab(42.06% 0.1328 -0.1193)
OKLCHoklch(42.06% 0.179 318.1)
XYZxyz(12.0490, 6.2642, 24.6143)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B8A #328A1B
analogous
#3C1B8A #731B8A #8A1B69
triadic
#731B8A #8A731B #1B8A73
tetradic
#731B8A #8A3C1B #328A1B #1B698A
square
#731B8A #8A3C1B #328A1B #1B698A
split-complementary
#731B8A #698A1B #1B8A3C
monochromatic
#1E0724 #481157 #731B8A #9E25BD #BC45DB

Accessibility & contrast

On white

9.32
#731B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#731B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B8A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B8A#FFFFFF#000000##FFFFFF
##731B8A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#204988
Tritanopia (blue-blind)
#723453
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731b8a;
/* rgb */ color: rgb(115, 27, 138);
/* oklch */ color: oklch(42.1% 0.179 318.1);
Tailwind
colors: {
  custom: {
    50: '#9f63ad',
    500: '#731b8a',
    950: '#000000',
  },
}
SCSS
$custom: #731b8a;
$custom-light: #9f63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731b8a",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 287.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42064,
    "c": 0.17852,
    "h": 318.1
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#731B8A
secondary
#5DBC45
accent
#EA3E61
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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