#731E7A#731E7A

#731E7A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.161 H 324.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#731E7A
RGBrgb(115, 30, 122)
HSLhsl(295, 61%, 30%)
HSVhsv(295, 75%, 48%)
CMYKcmyk(5.7%, 75.4%, 0%, 52.2%)
CIE-LABlab(29.36, 48.49, -33.52)
CIE-LCHlch(29.36, 58.95, 325.35°)
OKLaboklab(41.22% 0.1316 -0.0933)
OKLCHoklch(41.22% 0.161 324.6)
XYZxyz(11.0471, 5.9792, 18.9808)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E7A #257A1E
analogous
#451E7A #731E7A #7A1E53
triadic
#731E7A #7A731E #1E7A73
tetradic
#731E7A #7A451E #257A1E #1E537A
square
#731E7A #7A451E #257A1E #1E537A
split-complementary
#731E7A #537A1E #1E7A45
monochromatic
#170619 #451249 #731E7A #A12AAB #C642D0

Accessibility & contrast

On white

9.56
#731E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#731E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E7A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E7A#FFFFFF#000000##FFFFFF
##731E7A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#304978
Tritanopia (blue-blind)
#752E4A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731e7a;
/* rgb */ color: rgb(115, 30, 122);
/* oklch */ color: oklch(41.2% 0.161 324.6);
Tailwind
colors: {
  custom: {
    50: '#9e63a1',
    500: '#731e7a',
    950: '#000000',
  },
}
SCSS
$custom: #731e7a;
$custom-light: #9e63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#731e7a",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 295.435,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.16134,
    "h": 324.6
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#731E7A
secondary
#4EAE46
accent
#E44450
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #731E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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