#731E98#731E98

#731E98 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.188 H 312.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#731E98
RGBrgb(115, 30, 152)
HSLhsl(282, 67%, 36%)
HSVhsv(282, 80%, 60%)
CMYKcmyk(24.3%, 80.3%, 0%, 40.4%)
CIE-LABlab(31.44, 54.45, -48.81)
CIE-LCHlch(31.44, 73.12, 318.12°)
OKLaboklab(43.35% 0.1277 -0.1382)
OKLCHoklch(43.35% 0.188 312.7)
XYZxyz(13.2010, 6.8408, 30.3247)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E98 #43981E
analogous
#361E98 #731E98 #981E80
triadic
#731E98 #98731E #1E9873
tetradic
#731E98 #98361E #43981E #1E8098
square
#731E98 #98361E #43981E #1E8098
split-complementary
#731E98 #80981E #1E9836
monochromatic
#260A32 #4C1465 #731E98 #9A28CB #B353DD

Accessibility & contrast

On white

8.87
#731E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#731E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E98
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E98#FFFFFF#000000##FFFFFF
##731E981.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#084C95
Tritanopia (blue-blind)
#6F3C5B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731e98;
/* rgb */ color: rgb(115, 30, 152);
/* oklch */ color: oklch(43.4% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#a065b7',
    500: '#731e98',
    950: '#000000',
  },
}
SCSS
$custom: #731e98;
$custom-light: #a065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#731e98",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 281.803,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.18816,
    "h": 312.7
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#731E98
secondary
#73C051
accent
#EA3E72
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731E98

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

Preview Lab → · Contrast checker → · Palette generator →

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