#731987#731987

#731987 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.178 H 319.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#731987
RGBrgb(115, 25, 135)
HSLhsl(289, 69%, 31%)
HSVhsv(289, 81%, 53%)
CMYKcmyk(14.8%, 81.5%, 0%, 47.1%)
CIE-LABlab(29.64, 52.65, -41.23)
CIE-LCHlch(29.64, 66.87, 321.93°)
OKLaboklab(41.69% 0.1349 -0.1159)
OKLCHoklch(41.69% 0.178 319.3)
XYZxyz(11.7905, 6.0900, 23.4714)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731987 #2D8719
analogous
#3C1987 #731987 #871964
triadic
#731987 #877319 #198773
tetradic
#731987 #873C19 #2D8719 #196487
square
#731987 #873C19 #2D8719 #196487
split-complementary
#731987 #648719 #19873C
monochromatic
#1B0620 #470F53 #731987 #9F23BB #BF3FDB

Accessibility & contrast

On white

9.47
#731987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731987
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731987#FFFFFF#000000##FFFFFF
##7319871.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#224985
Tritanopia (blue-blind)
#733250
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731987;
/* rgb */ color: rgb(115, 25, 135);
/* oklch */ color: oklch(41.7% 0.178 319.3);
Tailwind
colors: {
  custom: {
    50: '#9f62ab',
    500: '#731987',
    950: '#000000',
  },
}
SCSS
$custom: #731987;
$custom-light: #9f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#731987",
  "rgb": {
    "r": 115,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 289.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.17783,
    "h": 319.3
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#731987
secondary
#57BA41
accent
#EC3C5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731987

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

Preview Lab → · Contrast checker → · Palette generator →

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