#731B8B#731B8B

#731B8B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.179 H 317.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#731B8B
RGBrgb(115, 27, 139)
HSLhsl(287, 67%, 33%)
HSVhsv(287, 81%, 55%)
CMYKcmyk(17.3%, 80.6%, 0%, 45.5%)
CIE-LABlab(30.14, 52.80, -42.91)
CIE-LCHlch(30.14, 68.03, 320.90°)
OKLaboklab(42.14% 0.1326 -0.1208)
OKLCHoklch(42.14% 0.179 317.7)
XYZxyz(12.1217, 6.2933, 24.9973)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B8B #338B1B
analogous
#3B1B8B #731B8B #8B1B6B
triadic
#731B8B #8B731B #1B8B73
tetradic
#731B8B #8B3B1B #338B1B #1B6B8B
square
#731B8B #8B3B1B #338B1B #1B6B8B
split-complementary
#731B8B #6B8B1B #1B8B3B
monochromatic
#1E0725 #491158 #731B8B #9D25BE #BB45DB

Accessibility & contrast

On white

9.30
#731B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#731B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B8B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B8B#FFFFFF#000000##FFFFFF
##731B8B1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#723453
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #731b8b;
/* rgb */ color: rgb(115, 27, 139);
/* oklch */ color: oklch(42.1% 0.179 317.7);
Tailwind
colors: {
  custom: {
    50: '#9f63ad',
    500: '#731b8b',
    950: '#000000',
  },
}
SCSS
$custom: #731b8b;
$custom-light: #9f63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731b8b",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 287.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.1794,
    "h": 317.7
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#731B8B
secondary
#5FBC45
accent
#EA3D62
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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