#731F88#731F88

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

Color values

HEX#731F88
RGBrgb(115, 31, 136)
HSLhsl(288, 63%, 33%)
HSVhsv(288, 77%, 53%)
CMYKcmyk(15.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(30.41, 50.83, -40.62)
CIE-LCHlch(30.41, 65.06, 321.37°)
OKLaboklab(42.26% 0.1295 -0.1141)
OKLCHoklch(42.26% 0.173 318.6)
XYZxyz(12.0035, 6.4030, 23.8914)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F88 #34881F
analogous
#3E1F88 #731F88 #881F68
triadic
#731F88 #88731F #1F8873
tetradic
#731F88 #883E1F #34881F #1F6888
square
#731F88 #883E1F #34881F #1F6888
split-complementary
#731F88 #68881F #1F883E
monochromatic
#1F0824 #491456 #731F88 #9D2ABA #BA4BD6

Accessibility & contrast

On white

9.21
#731F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#731F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F88
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F88#FFFFFF#000000##FFFFFF
##731F881.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#254A86
Tritanopia (blue-blind)
#733552
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731f88;
/* rgb */ color: rgb(115, 31, 136);
/* oklch */ color: oklch(42.3% 0.173 318.6);
Tailwind
colors: {
  custom: {
    50: '#9f64ab',
    500: '#731f88',
    950: '#000000',
  },
}
SCSS
$custom: #731f88;
$custom-light: #9f64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#731f88",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 288,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.17259,
    "h": 318.6
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#731F88
secondary
#60B94A
accent
#E64263
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F88

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

Preview Lab → · Contrast checker → · Palette generator →

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