#731F7C#731F7C

#731F7C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.162 H 323.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#731F7C
RGBrgb(115, 31, 124)
HSLhsl(294, 60%, 30%)
HSVhsv(294, 75%, 49%)
CMYKcmyk(7.3%, 75%, 0%, 51.4%)
CIE-LABlab(29.62, 48.50, -34.37)
CIE-LCHlch(29.62, 59.44, 324.67°)
OKLaboklab(41.44% 0.1305 -0.0958)
OKLCHoklch(41.44% 0.162 323.7)
XYZxyz(11.1980, 6.0807, 19.6488)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F7C #287C1F
analogous
#451F7C #731F7C #7C1F56
triadic
#731F7C #7C731F #1F7C73
tetradic
#731F7C #7C451F #287C1F #1F567C
square
#731F7C #7C451F #287C1F #1F567C
split-complementary
#731F7C #567C1F #1F7C45
monochromatic
#18071A #46134B #731F7C #A02BAD #C345D0

Accessibility & contrast

On white

9.48
#731F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#731F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F7C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F7C#FFFFFF#000000##FFFFFF
##731F7C1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#2F497A
Tritanopia (blue-blind)
#75304C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731f7c;
/* rgb */ color: rgb(115, 31, 124);
/* oklch */ color: oklch(41.4% 0.162 323.7);
Tailwind
colors: {
  custom: {
    50: '#9e64a2',
    500: '#731f7c',
    950: '#000000',
  },
}
SCSS
$custom: #731f7c;
$custom-light: #9e64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#731f7c",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 294.194,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41442,
    "c": 0.16191,
    "h": 323.7
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#731F7C
secondary
#52AF48
accent
#E34554
background
#FAF6FA
surface
#F3EBF3
border
#CDC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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