#731F77#731F77

#731F77 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.1% C 0.158 H 326.0°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#731F77
RGBrgb(115, 31, 119)
HSLhsl(297, 59%, 29%)
HSVhsv(297, 74%, 47%)
CMYKcmyk(3.4%, 73.9%, 0%, 53.3%)
CIE-LABlab(29.30, 47.57, -31.71)
CIE-LCHlch(29.30, 57.17, 326.31°)
OKLaboklab(41.12% 0.1306 -0.0881)
OKLCHoklch(41.12% 0.158 326)
XYZxyz(10.8898, 5.9574, 18.0255)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F77 #23771F
analogous
#471F77 #731F77 #771F4F
triadic
#731F77 #77731F #1F7773
tetradic
#731F77 #77471F #23771F #1F4F77
square
#731F77 #77471F #23771F #1F4F77
split-complementary
#731F77 #4F771F #1F7747
monochromatic
#170618 #441246 #731F77 #A22CA8 #C843CE

Accessibility & contrast

On white

9.58
#731F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#731F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F77
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F77#FFFFFF#000000##FFFFFF
##731F771.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093E79
Deuteranopia (green-blind)
#334975
Tritanopia (blue-blind)
#762D49
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #731f77;
/* rgb */ color: rgb(115, 31, 119);
/* oklch */ color: oklch(41.1% 0.158 326.0);
Tailwind
colors: {
  custom: {
    50: '#9e649f',
    500: '#731f77',
    950: '#000000',
  },
}
SCSS
$custom: #731f77;
$custom-light: #9e649f;
$custom-dark: #000000;
JSON
{
  "hex": "#731f77",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 297.273,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4112,
    "c": 0.15756,
    "h": 326
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#731F77
secondary
#4CAB47
accent
#E2464D
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731F77

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

Preview Lab → · Contrast checker → · Palette generator →

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