#731878#731878

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

Color values

HEX#731878
RGBrgb(115, 24, 120)
HSLhsl(297, 67%, 28%)
HSVhsv(297, 80%, 47%)
CMYKcmyk(4.2%, 80%, 0%, 52.9%)
CIE-LABlab(28.52, 50.16, -33.58)
CIE-LCHlch(28.52, 60.37, 326.20°)
OKLaboklab(40.58% 0.1373 -0.0935)
OKLCHoklch(40.58% 0.166 325.7)
XYZxyz(10.7868, 5.6549, 18.2890)
Luminance0.0565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731878 #1D7818
analogous
#431878 #731878 #78184D
triadic
#731878 #787318 #187873
tetradic
#731878 #784318 #1D7818 #184D78
square
#731878 #784318 #1D7818 #184D78
split-complementary
#731878 #4D7818 #187843
monochromatic
#18051A #420E45 #731878 #A422AB #CE34D6

Accessibility & contrast

On white

9.86
#731878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#731878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731878
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731878#FFFFFF#000000##FFFFFF
##7318781.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.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: #731878;
/* rgb */ color: rgb(115, 24, 120);
/* oklch */ color: oklch(40.6% 0.166 325.7);
Tailwind
colors: {
  custom: {
    50: '#9f619f',
    500: '#731878',
    950: '#000000',
  },
}
SCSS
$custom: #731878;
$custom-light: #9f619f;
$custom-dark: #000000;
JSON
{
  "hex": "#731878",
  "rgb": {
    "r": 115,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 296.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40584,
    "c": 0.16613,
    "h": 325.7
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#731878
secondary
#45AD3F
accent
#EA3E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E

Preview Lab

Preview with #731878

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

Preview Lab → · Contrast checker → · Palette generator →

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