#731E7B#731E7B

#731E7B is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.162 H 324.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#731E7B
RGBrgb(115, 30, 123)
HSLhsl(295, 61%, 30%)
HSVhsv(295, 76%, 48%)
CMYKcmyk(6.5%, 75.6%, 0%, 51.8%)
CIE-LABlab(29.42, 48.68, -34.05)
CIE-LCHlch(29.42, 59.41, 325.03°)
OKLaboklab(41.28% 0.1316 -0.0949)
OKLCHoklch(41.28% 0.162 324.2)
XYZxyz(11.1094, 6.0041, 19.3088)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E7B #267B1E
analogous
#451E7B #731E7B #7B1E54
triadic
#731E7B #7B731E #1E7B73
tetradic
#731E7B #7B451E #267B1E #1E547B
square
#731E7B #7B451E #267B1E #1E547B
split-complementary
#731E7B #547B1E #1E7B45
monochromatic
#170619 #45124A #731E7B #A12AAC #C542D1

Accessibility & contrast

On white

9.54
#731E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731E7B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E7B#FFFFFF#000000##FFFFFF
##731E7B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#304979
Tritanopia (blue-blind)
#752F4B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731e7b;
/* rgb */ color: rgb(115, 30, 123);
/* oklch */ color: oklch(41.3% 0.162 324.2);
Tailwind
colors: {
  custom: {
    50: '#9e63a2',
    500: '#731e7b',
    950: '#000000',
  },
}
SCSS
$custom: #731e7b;
$custom-light: #9e63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#731e7b",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 294.839,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.41284,
    "c": 0.16221,
    "h": 324.2
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#731E7B
secondary
#4FAE46
accent
#E44452
background
#FAF6FA
surface
#F3EBF3
border
#CDC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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