#731E9B#731E9B

#731E9B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.191 H 311.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#731E9B
RGBrgb(115, 30, 155)
HSLhsl(281, 68%, 36%)
HSVhsv(281, 81%, 61%)
CMYKcmyk(25.8%, 80.6%, 0%, 39.2%)
CIE-LABlab(31.67, 55.08, -50.27)
CIE-LCHlch(31.67, 74.57, 317.61°)
OKLaboklab(43.59% 0.1271 -0.1425)
OKLCHoklch(43.59% 0.191 311.7)
XYZxyz(13.4498, 6.9403, 31.6351)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E9B #469B1E
analogous
#351E9B #731E9B #9B1E85
triadic
#731E9B #9B731E #1E9B73
tetradic
#731E9B #9B351E #469B1E #1E859B
square
#731E9B #9B351E #469B1E #1E859B
split-complementary
#731E9B #859B1E #1E9B35
monochromatic
#270A34 #4D1468 #731E9B #9928CE #B255DE

Accessibility & contrast

On white

8.79
#731E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#731E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E9B
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E9B#FFFFFF#000000##FFFFFF
##731E9B1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#6E3D5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731e9b;
/* rgb */ color: rgb(115, 30, 155);
/* oklch */ color: oklch(43.6% 0.191 311.7);
Tailwind
colors: {
  custom: {
    50: '#a065b9',
    500: '#731e9b',
    950: '#000000',
  },
}
SCSS
$custom: #731e9b;
$custom-light: #a065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731e9b",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 280.8,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43587,
    "c": 0.1909,
    "h": 311.7
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#731E9B
secondary
#77C253
accent
#EA3D75
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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