#731E9D#731E9D

#731E9D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.193 H 311.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#731E9D
RGBrgb(115, 30, 157)
HSLhsl(280, 68%, 37%)
HSVhsv(280, 81%, 62%)
CMYKcmyk(26.8%, 80.9%, 0%, 38.4%)
CIE-LABlab(31.83, 55.50, -51.24)
CIE-LCHlch(31.83, 75.54, 317.28°)
OKLaboklab(43.74% 0.1266 -0.1453)
OKLCHoklch(43.74% 0.193 311.1)
XYZxyz(13.6191, 7.0081, 32.5270)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E9D #489D1E
analogous
#331E9D #731E9D #9D1E88
triadic
#731E9D #9D731E #1E9D73
tetradic
#731E9D #9D331E #489D1E #1E889D
square
#731E9D #9D331E #489D1E #1E889D
split-complementary
#731E9D #889D1E #1E9D33
monochromatic
#280A36 #4D146A #731E9D #9928D0 #B257DF

Accessibility & contrast

On white

8.74
#731E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#731E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E9D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E9D#FFFFFF#000000##FFFFFF
##731E9D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#6D3E5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731e9d;
/* rgb */ color: rgb(115, 30, 157);
/* oklch */ color: oklch(43.7% 0.193 311.1);
Tailwind
colors: {
  custom: {
    50: '#a065bb',
    500: '#731e9d',
    950: '#000000',
  },
}
SCSS
$custom: #731e9d;
$custom-light: #a065bb;
$custom-dark: #000000;
JSON
{
  "hex": "#731e9d",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 280.157,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.19273,
    "h": 311.1
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#731E9D
secondary
#79C254
accent
#EB3D76
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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