#731D98#731D98

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

Color values

HEX#731D98
RGBrgb(115, 29, 152)
HSLhsl(282, 68%, 35%)
HSVhsv(282, 81%, 60%)
CMYKcmyk(24.3%, 80.9%, 0%, 40.4%)
CIE-LABlab(31.33, 54.78, -49.00)
CIE-LCHlch(31.33, 73.50, 318.19°)
OKLaboklab(43.27% 0.1285 -0.1387)
OKLCHoklch(43.27% 0.189 312.8)
XYZxyz(13.1761, 6.7910, 30.3164)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D98 #42981D
analogous
#351D98 #731D98 #981D7F
triadic
#731D98 #98731D #1D9873
tetradic
#731D98 #98351D #42981D #1D7F98
square
#731D98 #98351D #42981D #1D7F98
split-complementary
#731D98 #7F981D #1D9835
monochromatic
#250931 #4C1365 #731D98 #9A27CB #B452DE

Accessibility & contrast

On white

8.91
#731D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#731D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731D98
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D98#FFFFFF#000000##FFFFFF
##731D981.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#064B95
Tritanopia (blue-blind)
#6F3B5B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731d98;
/* rgb */ color: rgb(115, 29, 152);
/* oklch */ color: oklch(43.3% 0.189 312.8);
Tailwind
colors: {
  custom: {
    50: '#a064b7',
    500: '#731d98',
    950: '#000000',
  },
}
SCSS
$custom: #731d98;
$custom-light: #a064b7;
$custom-dark: #000000;
JSON
{
  "hex": "#731d98",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 281.951,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43273,
    "c": 0.1891,
    "h": 312.8
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#731D98
secondary
#72C150
accent
#EB3D71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731D98

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

Preview Lab → · Contrast checker → · Palette generator →

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