#731F99#731F99

#731F99 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.188 H 312.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#731F99
RGBrgb(115, 31, 153)
HSLhsl(281, 66%, 36%)
HSVhsv(281, 80%, 60%)
CMYKcmyk(24.8%, 79.7%, 0%, 40%)
CIE-LABlab(31.64, 54.31, -49.11)
CIE-LCHlch(31.64, 73.22, 317.88°)
OKLaboklab(43.51% 0.1267 -0.139)
OKLCHoklch(43.51% 0.188 312.3)
XYZxyz(13.3089, 6.9251, 30.7664)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F99 #45991F
analogous
#361F99 #731F99 #991F82
triadic
#731F99 #99731F #1F9973
tetradic
#731F99 #99361F #45991F #1F8299
square
#731F99 #99361F #45991F #1F8299
split-complementary
#731F99 #82991F #1F9936
monochromatic
#260A33 #4D1566 #731F99 #9929CC #B356DD

Accessibility & contrast

On white

8.81
#731F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#731F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F99
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F99#FFFFFF#000000##FFFFFF
##731F991.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#074C96
Tritanopia (blue-blind)
#6E3D5C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731f99;
/* rgb */ color: rgb(115, 31, 153);
/* oklch */ color: oklch(43.5% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#a065b8',
    500: '#731f99',
    950: '#000000',
  },
}
SCSS
$custom: #731f99;
$custom-light: #a065b8;
$custom-dark: #000000;
JSON
{
  "hex": "#731f99",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 281.311,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43514,
    "c": 0.1881,
    "h": 312.3
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#731F99
secondary
#75C054
accent
#E93F74
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F99

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

Preview Lab → · Contrast checker → · Palette generator →

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