#731B87#731B87

#731B87 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.176 H 319.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#731B87
RGBrgb(115, 27, 135)
HSLhsl(289, 67%, 32%)
HSVhsv(289, 80%, 53%)
CMYKcmyk(14.8%, 80%, 0%, 47.1%)
CIE-LABlab(29.86, 52.01, -40.88)
CIE-LCHlch(29.86, 66.15, 321.83°)
OKLaboklab(41.85% 0.1332 -0.1149)
OKLCHoklch(41.85% 0.176 319.2)
XYZxyz(11.8348, 6.1786, 23.4862)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B87 #2F871B
analogous
#3D1B87 #731B87 #871B65
triadic
#731B87 #87731B #1B8773
tetradic
#731B87 #873D1B #2F871B #1B6587
square
#731B87 #873D1B #2F871B #1B6587
split-complementary
#731B87 #65871B #1B873D
monochromatic
#1C0721 #481154 #731B87 #9E25BA #BE43D9

Accessibility & contrast

On white

9.39
#731B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#731B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B87
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B87#FFFFFF#000000##FFFFFF
##731B871.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#234985
Tritanopia (blue-blind)
#733351
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731b87;
/* rgb */ color: rgb(115, 27, 135);
/* oklch */ color: oklch(41.8% 0.176 319.2);
Tailwind
colors: {
  custom: {
    50: '#9f63ab',
    500: '#731b87',
    950: '#000000',
  },
}
SCSS
$custom: #731b87;
$custom-light: #9f63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#731b87",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 288.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41848,
    "c": 0.1759,
    "h": 319.2
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#731B87
secondary
#5ABA44
accent
#EA3E5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731B87

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

Preview Lab → · Contrast checker → · Palette generator →

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