#731C98#731C98

#731C98 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.2% C 0.190 H 312.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#731C98
RGBrgb(115, 28, 152)
HSLhsl(282, 69%, 35%)
HSVhsv(282, 82%, 60%)
CMYKcmyk(24.3%, 81.6%, 0%, 40.4%)
CIE-LABlab(31.21, 55.11, -49.18)
CIE-LCHlch(31.21, 73.86, 318.25°)
OKLaboklab(43.19% 0.1293 -0.1392)
OKLCHoklch(43.19% 0.19 312.9)
XYZxyz(13.1520, 6.7428, 30.3083)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731C98 #41981C
analogous
#351C98 #731C98 #981C7F
triadic
#731C98 #98731C #1C9873
tetradic
#731C98 #98351C #41981C #1C7F98
square
#731C98 #98351C #41981C #1C7F98
split-complementary
#731C98 #7F981C #1C9835
monochromatic
#250931 #4C1264 #731C98 #9A26CC #B450DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##731C98#FFFFFF#000000##FFFFFF
##731C981.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)
#00459B
Deuteranopia (green-blind)
#054B95
Tritanopia (blue-blind)
#6F3B5B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #731c98;
/* rgb */ color: rgb(115, 28, 152);
/* oklch */ color: oklch(43.2% 0.190 312.9);
Tailwind
colors: {
  custom: {
    50: '#a064b7',
    500: '#731c98',
    950: '#000000',
  },
}
SCSS
$custom: #731c98;
$custom-light: #a064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#731c98",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 282.097,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43194,
    "c": 0.19004,
    "h": 312.9
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#731C98
secondary
#71C14E
accent
#EC3C70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731C98

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

Preview Lab → · Contrast checker → · Palette generator →

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