#731C8A#731C8A

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

Color values

HEX#731C8A
RGBrgb(115, 28, 138)
HSLhsl(287, 66%, 33%)
HSVhsv(287, 80%, 54%)
CMYKcmyk(16.7%, 79.7%, 0%, 45.9%)
CIE-LABlab(30.18, 52.27, -42.22)
CIE-LCHlch(30.18, 67.19, 321.07°)
OKLaboklab(42.15% 0.1319 -0.1188)
OKLCHoklch(42.15% 0.178 318)
XYZxyz(12.0723, 6.3109, 24.6220)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731C8A #338A1C
analogous
#3C1C8A #731C8A #8A1C6A
triadic
#731C8A #8A731C #1C8A73
tetradic
#731C8A #8A3C1C #338A1C #1C6A8A
square
#731C8A #8A3C1C #338A1C #1C6A8A
split-complementary
#731C8A #6A8A1C #1C8A3C
monochromatic
#1E0724 #491257 #731C8A #9D26BD #BB47DA

Accessibility & contrast

On white

9.28
#731C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#731C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731C8A
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731C8A#FFFFFF#000000##FFFFFF
##731C8A1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#214A88
Tritanopia (blue-blind)
#723453
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731c8a;
/* rgb */ color: rgb(115, 28, 138);
/* oklch */ color: oklch(42.1% 0.178 318.0);
Tailwind
colors: {
  custom: {
    50: '#9f63ad',
    500: '#731c8a',
    950: '#000000',
  },
}
SCSS
$custom: #731c8a;
$custom-light: #9f63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731c8a",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 287.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42145,
    "c": 0.17754,
    "h": 318
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#731C8A
secondary
#5FBB46
accent
#E93F62
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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