#731D9E#731D9E

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

Color values

HEX#731D9E
RGBrgb(115, 29, 158)
HSLhsl(280, 69%, 37%)
HSVhsv(280, 82%, 62%)
CMYKcmyk(27.2%, 81.6%, 0%, 38%)
CIE-LABlab(31.79, 56.04, -51.91)
CIE-LCHlch(31.79, 76.39, 317.19°)
OKLaboklab(43.74% 0.1272 -0.1472)
OKLCHoklch(43.74% 0.195 310.8)
XYZxyz(13.6800, 6.9925, 32.9702)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D9E #489E1D
analogous
#331D9E #731D9E #9E1D89
triadic
#731D9E #9E731D #1D9E73
tetradic
#731D9E #9E331D #489E1D #1D899E
square
#731D9E #9E331D #489E1D #1D899E
split-complementary
#731D9E #899E1D #1D9E33
monochromatic
#280A37 #4D146A #731D9E #9926D2 #B256E0

Accessibility & contrast

On white

8.76
#731D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731D9E
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D9E#FFFFFF#000000##FFFFFF
##731D9E1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#6D3E5F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731d9e;
/* rgb */ color: rgb(115, 29, 158);
/* oklch */ color: oklch(43.7% 0.195 310.8);
Tailwind
colors: {
  custom: {
    50: '#a065bb',
    500: '#731d9e',
    950: '#000000',
  },
}
SCSS
$custom: #731d9e;
$custom-light: #a065bb;
$custom-dark: #000000;
JSON
{
  "hex": "#731d9e",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 280,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.19456,
    "h": 310.8
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#731D9E
secondary
#79C354
accent
#EC3C77
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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