#731F91#731F91

#731F91 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.181 H 315.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#731F91
RGBrgb(115, 31, 145)
HSLhsl(284, 65%, 35%)
HSVhsv(284, 79%, 57%)
CMYKcmyk(20.7%, 78.6%, 0%, 43.1%)
CIE-LABlab(31.04, 52.65, -45.16)
CIE-LCHlch(31.04, 69.37, 319.38°)
OKLaboklab(42.91% 0.1282 -0.1275)
OKLCHoklch(42.91% 0.181 315.2)
XYZxyz(12.6702, 6.6696, 27.4025)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F91 #3D911F
analogous
#3A1F91 #731F91 #911F76
triadic
#731F91 #91731F #1F9173
tetradic
#731F91 #913A1F #3D911F #1F7691
square
#731F91 #913A1F #3D911F #1F7691
split-complementary
#731F91 #76911F #1F913A
monochromatic
#23092C #4B145F #731F91 #9B2AC3 #B651DA

Accessibility & contrast

On white

9.00
#731F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#731F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F91
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F91#FFFFFF#000000##FFFFFF
##731F911.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#1A4B8F
Tritanopia (blue-blind)
#703957
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #731f91;
/* rgb */ color: rgb(115, 31, 145);
/* oklch */ color: oklch(42.9% 0.181 315.2);
Tailwind
colors: {
  custom: {
    50: '#9f65b2',
    500: '#731f91',
    950: '#000000',
  },
}
SCSS
$custom: #731f91;
$custom-light: #9f65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#731f91",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 284.211,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4291,
    "c": 0.18077,
    "h": 315.2
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#731F91
secondary
#6CBD4F
accent
#E8406C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F91

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

Preview Lab → · Contrast checker → · Palette generator →

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