#731988#731988

#731988 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.179 H 318.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#731988
RGBrgb(115, 25, 136)
HSLhsl(289, 69%, 32%)
HSVhsv(289, 82%, 53%)
CMYKcmyk(15.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(29.71, 52.84, -41.74)
CIE-LCHlch(29.71, 67.34, 321.69°)
OKLaboklab(41.77% 0.1347 -0.1174)
OKLCHoklch(41.77% 0.179 318.9)
XYZxyz(11.8612, 6.1183, 23.8439)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731988 #2E8819
analogous
#3C1988 #731988 #881966
triadic
#731988 #887319 #198873
tetradic
#731988 #883C19 #2E8819 #196688
square
#731988 #883C19 #2E8819 #196688
split-complementary
#731988 #668819 #19883C
monochromatic
#1C0621 #470F54 #731988 #9F23BC #BE40DC

Accessibility & contrast

On white

9.44
#731988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#731988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731988
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731988#FFFFFF#000000##FFFFFF
##7319881.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#214986
Tritanopia (blue-blind)
#733251
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731988;
/* rgb */ color: rgb(115, 25, 136);
/* oklch */ color: oklch(41.8% 0.179 318.9);
Tailwind
colors: {
  custom: {
    50: '#9f62ab',
    500: '#731988',
    950: '#000000',
  },
}
SCSS
$custom: #731988;
$custom-light: #9f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#731988",
  "rgb": {
    "r": 115,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 288.649,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.1787,
    "h": 318.9
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#731988
secondary
#58BB41
accent
#EC3C5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731988

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

Preview Lab → · Contrast checker → · Palette generator →

#731988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva