#731F89#731F89

#731F89 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.173 H 318.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#731F89
RGBrgb(115, 31, 137)
HSLhsl(288, 63%, 33%)
HSVhsv(288, 77%, 54%)
CMYKcmyk(16.1%, 77.4%, 0%, 46.3%)
CIE-LABlab(30.48, 51.03, -41.13)
CIE-LCHlch(30.48, 65.54, 321.13°)
OKLaboklab(42.33% 0.1294 -0.1156)
OKLCHoklch(42.33% 0.174 318.2)
XYZxyz(12.0749, 6.4315, 24.2674)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F89 #35891F
analogous
#3E1F89 #731F89 #891F6A
triadic
#731F89 #89731F #1F8973
tetradic
#731F89 #893E1F #35891F #1F6A89
square
#731F89 #893E1F #35891F #1F6A89
split-complementary
#731F89 #6A891F #1F893E
monochromatic
#1F0825 #491457 #731F89 #9D2ABB #BA4CD6

Accessibility & contrast

On white

9.19
#731F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#731F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F89
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F89#FFFFFF#000000##FFFFFF
##731F891.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#244A87
Tritanopia (blue-blind)
#723553
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731f89;
/* rgb */ color: rgb(115, 31, 137);
/* oklch */ color: oklch(42.3% 0.173 318.2);
Tailwind
colors: {
  custom: {
    50: '#9f65ac',
    500: '#731f89',
    950: '#000000',
  },
}
SCSS
$custom: #731f89;
$custom-light: #9f65ac;
$custom-dark: #000000;
JSON
{
  "hex": "#731f89",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 287.547,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42329,
    "c": 0.1735,
    "h": 318.2
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

primary
#731F89
secondary
#62B94B
accent
#E64264
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F89

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

Preview Lab → · Contrast checker → · Palette generator →

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