#731C78#731C78

#731C78 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.162 H 325.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#731C78
RGBrgb(115, 28, 120)
HSLhsl(297, 62%, 29%)
HSVhsv(297, 77%, 47%)
CMYKcmyk(4.2%, 76.7%, 0%, 52.9%)
CIE-LABlab(28.98, 48.84, -32.85)
CIE-LCHlch(28.98, 58.86, 326.07°)
OKLaboklab(40.91% 0.1336 -0.0914)
OKLCHoklch(40.91% 0.162 325.6)
XYZxyz(10.8754, 5.8321, 18.3186)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731C78 #21781C
analogous
#451C78 #731C78 #781C4F
triadic
#731C78 #78731C #1C7873
tetradic
#731C78 #78451C #21781C #1C4F78
square
#731C78 #78451C #21781C #1C4F78
split-complementary
#731C78 #4F781C #1C7845
monochromatic
#180619 #431046 #731C78 #A328AA #CA3DD2

Accessibility & contrast

On white

9.69
#731C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#731C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731C78
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731C78#FFFFFF#000000##FFFFFF
##731C781.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#314876
Tritanopia (blue-blind)
#762C49
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #731c78;
/* rgb */ color: rgb(115, 28, 120);
/* oklch */ color: oklch(40.9% 0.162 325.6);
Tailwind
colors: {
  custom: {
    50: '#9f629f',
    500: '#731c78',
    950: '#000000',
  },
}
SCSS
$custom: #731c78;
$custom-light: #9f629f;
$custom-dark: #000000;
JSON
{
  "hex": "#731c78",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 296.739,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.40911,
    "c": 0.1619,
    "h": 325.6
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#731C78
secondary
#49AC44
accent
#E5434B
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731C78

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

Preview Lab → · Contrast checker → · Palette generator →

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