#731F94#731F94

#731F94 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.184 H 314.1°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#731F94
RGBrgb(115, 31, 148)
HSLhsl(283, 65%, 35%)
HSVhsv(283, 79%, 58%)
CMYKcmyk(22.3%, 79.1%, 0%, 42%)
CIE-LABlab(31.26, 53.27, -46.65)
CIE-LCHlch(31.26, 70.81, 318.79°)
OKLaboklab(43.13% 0.1277 -0.1318)
OKLCHoklch(43.13% 0.184 314.1)
XYZxyz(12.9046, 6.7634, 28.6369)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F94 #40941F
analogous
#391F94 #731F94 #941F7A
triadic
#731F94 #94731F #1F9473
tetradic
#731F94 #94391F #40941F #1F7A94
square
#731F94 #94391F #40941F #1F7A94
split-complementary
#731F94 #7A941F #1F9439
monochromatic
#240A2F #4C1461 #731F94 #9A2AC7 #B453DB

Accessibility & contrast

On white

8.93
#731F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#731F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F94
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F94#FFFFFF#000000##FFFFFF
##731F941.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#154B92
Tritanopia (blue-blind)
#703B59
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #731f94;
/* rgb */ color: rgb(115, 31, 148);
/* oklch */ color: oklch(43.1% 0.184 314.1);
Tailwind
colors: {
  custom: {
    50: '#9f65b4',
    500: '#731f94',
    950: '#000000',
  },
}
SCSS
$custom: #731f94;
$custom-light: #9f65b4;
$custom-dark: #000000;
JSON
{
  "hex": "#731f94",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 283.077,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43134,
    "c": 0.18351,
    "h": 314.1
  },
  "luminance": 0.06763
}

Semantic roles & 50–950 ramp

primary
#731F94
secondary
#70BE51
accent
#E83F6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F94

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

Preview Lab → · Contrast checker → · Palette generator →

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