#731B78#731B78

#731B78 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.163 H 325.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#731B78
RGBrgb(115, 27, 120)
HSLhsl(297, 63%, 29%)
HSVhsv(297, 78%, 47%)
CMYKcmyk(4.2%, 77.5%, 0%, 52.9%)
CIE-LABlab(28.86, 49.18, -33.04)
CIE-LCHlch(28.86, 59.25, 326.11°)
OKLaboklab(40.83% 0.1346 -0.0919)
OKLCHoklch(40.83% 0.163 325.7)
XYZxyz(10.8521, 5.7855, 18.3108)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B78 #20781B
analogous
#451B78 #731B78 #781B4F
triadic
#731B78 #78731B #1B7873
tetradic
#731B78 #78451B #20781B #1B4F78
square
#731B78 #78451B #20781B #1B4F78
split-complementary
#731B78 #4F781B #1B7845
monochromatic
#180619 #431046 #731B78 #A326AA #CB3BD3

Accessibility & contrast

On white

9.74
#731B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#731B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B78
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B78#FFFFFF#000000##FFFFFF
##731B781.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731b78;
/* rgb */ color: rgb(115, 27, 120);
/* oklch */ color: oklch(40.8% 0.163 325.7);
Tailwind
colors: {
  custom: {
    50: '#9f629f',
    500: '#731b78',
    950: '#000000',
  },
}
SCSS
$custom: #731b78;
$custom-light: #9f629f;
$custom-dark: #000000;
JSON
{
  "hex": "#731b78",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 296.774,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40826,
    "c": 0.163,
    "h": 325.7
  },
  "luminance": 0.05785
}

Semantic roles & 50–950 ramp

primary
#731B78
secondary
#48AC43
accent
#E6414A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731B78

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

Preview Lab → · Contrast checker → · Palette generator →

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