#731B76#731B76

#731B76 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.161 H 326.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#731B76
RGBrgb(115, 27, 118)
HSLhsl(298, 63%, 28%)
HSVhsv(298, 77%, 46%)
CMYKcmyk(2.5%, 77.1%, 0%, 53.7%)
CIE-LABlab(28.74, 48.82, -31.97)
CIE-LCHlch(28.74, 58.36, 326.78°)
OKLaboklab(40.7% 0.1347 -0.0888)
OKLCHoklch(40.7% 0.161 326.6)
XYZxyz(10.7320, 5.7375, 17.6782)
Luminance0.0574 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731B76 #1E761B
analogous
#451B76 #731B76 #761B4B
triadic
#731B76 #76731B #1B7673
tetradic
#731B76 #76451B #1E761B #1B4B76
square
#731B76 #76451B #1E761B #1B4B76
split-complementary
#731B76 #4B761B #1B7645
monochromatic
#180619 #421044 #731B76 #A426A8 #CD3AD2

Accessibility & contrast

On white

9.78
#731B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#731B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731B76
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731B76#FFFFFF#000000##FFFFFF
##731B761.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023D78
Deuteranopia (green-blind)
#314874
Tritanopia (blue-blind)
#762A47
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #731b76;
/* rgb */ color: rgb(115, 27, 118);
/* oklch */ color: oklch(40.7% 0.161 326.6);
Tailwind
colors: {
  custom: {
    50: '#9f629e',
    500: '#731b76',
    950: '#000000',
  },
}
SCSS
$custom: #731b76;
$custom-light: #9f629e;
$custom-dark: #000000;
JSON
{
  "hex": "#731b76",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 298.022,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.16133,
    "h": 326.6
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

primary
#731B76
secondary
#46AA42
accent
#E64247
background
#FAF6F9
surface
#F3EBF2
border
#CDC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731B76

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

Preview Lab → · Contrast checker → · Palette generator →

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