#731978#731978

#731978 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.165 H 325.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#731978
RGBrgb(115, 25, 120)
HSLhsl(297, 66%, 28%)
HSVhsv(297, 79%, 47%)
CMYKcmyk(4.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(28.63, 49.84, -33.41)
CIE-LCHlch(28.63, 60.00, 326.17°)
OKLaboklab(40.66% 0.1364 -0.093)
OKLCHoklch(40.66% 0.165 325.7)
XYZxyz(10.8078, 5.6969, 18.2960)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731978 #1E7819
analogous
#431978 #731978 #78194D
triadic
#731978 #787319 #197873
tetradic
#731978 #784319 #1E7819 #194D78
square
#731978 #784319 #1E7819 #194D78
split-complementary
#731978 #4D7819 #197843
monochromatic
#180519 #420E45 #731978 #A424AB #CD36D5

Accessibility & contrast

On white

9.82
#731978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#731978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731978
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731978#FFFFFF#000000##FFFFFF
##7319781.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#2F4776
Tritanopia (blue-blind)
#762A48
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #731978;
/* rgb */ color: rgb(115, 25, 120);
/* oklch */ color: oklch(40.7% 0.165 325.7);
Tailwind
colors: {
  custom: {
    50: '#9f619f',
    500: '#731978',
    950: '#000000',
  },
}
SCSS
$custom: #731978;
$custom-light: #9f619f;
$custom-dark: #000000;
JSON
{
  "hex": "#731978",
  "rgb": {
    "r": 115,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 296.842,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40662,
    "c": 0.16512,
    "h": 325.7
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#731978
secondary
#46AD40
accent
#E83F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #731978

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

Preview Lab → · Contrast checker → · Palette generator →

#731978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva