#731E7F#731E7F

#731E7F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.166 H 322.4°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#731E7F
RGBrgb(115, 30, 127)
HSLhsl(293, 62%, 31%)
HSVhsv(293, 76%, 50%)
CMYKcmyk(9.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(29.68, 49.43, -36.16)
CIE-LCHlch(29.68, 61.25, 323.82°)
OKLaboklab(41.55% 0.1313 -0.1011)
OKLCHoklch(41.55% 0.166 322.4)
XYZxyz(11.3649, 6.1063, 20.6546)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E7F #2A7F1E
analogous
#421E7F #731E7F #7F1E5A
triadic
#731E7F #7F731E #1E7F73
tetradic
#731E7F #7F421E #2A7F1E #1E5A7F
square
#731E7F #7F421E #2A7F1E #1E5A7F
split-complementary
#731E7F #5A7F1E #1E7F42
monochromatic
#19071C #46124D #731E7F #A02AB1 #C144D3

Accessibility & contrast

On white

9.45
#731E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731E7F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E7F#FFFFFF#000000##FFFFFF
##731E7F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#75304D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #731e7f;
/* rgb */ color: rgb(115, 30, 127);
/* oklch */ color: oklch(41.5% 0.166 322.4);
Tailwind
colors: {
  custom: {
    50: '#9f64a5',
    500: '#731e7f',
    950: '#000000',
  },
}
SCSS
$custom: #731e7f;
$custom-light: #9f64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#731e7f",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 292.577,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.1657,
    "h": 322.4
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#731E7F
secondary
#54B247
accent
#E54357
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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