#731F7E#731F7E

#731F7E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.164 H 322.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#731F7E
RGBrgb(115, 31, 126)
HSLhsl(293, 61%, 31%)
HSVhsv(293, 75%, 49%)
CMYKcmyk(8.7%, 75.4%, 0%, 50.6%)
CIE-LABlab(29.74, 48.88, -35.43)
CIE-LCHlch(29.74, 60.37, 324.06°)
OKLaboklab(41.57% 0.1304 -0.0989)
OKLCHoklch(41.57% 0.164 322.8)
XYZxyz(11.3257, 6.1318, 20.3216)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F7E #2A7E1F
analogous
#431F7E #731F7E #7E1F59
triadic
#731F7E #7E731F #1F7E73
tetradic
#731F7E #7E431F #2A7E1F #1F597E
square
#731F7E #7E431F #2A7E1F #1F597E
split-complementary
#731F7E #597E1F #1F7E43
monochromatic
#19071C #46134D #731F7E #A02BAF #C146D1

Accessibility & contrast

On white

9.43
#731F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#731F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F7E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F7E#FFFFFF#000000##FFFFFF
##731F7E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731f7e;
/* rgb */ color: rgb(115, 31, 126);
/* oklch */ color: oklch(41.6% 0.164 322.8);
Tailwind
colors: {
  custom: {
    50: '#9f64a4',
    500: '#731f7e',
    950: '#000000',
  },
}
SCSS
$custom: #731f7e;
$custom-light: #9f64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#731f7e",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 293.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.16366,
    "h": 322.8
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#731F7E
secondary
#54B148
accent
#E44457
background
#FAF6FA
surface
#F3EBF4
border
#CDC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #731F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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