#7E1478#7E1478

#7E1478 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.175 H 330.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1478
RGBrgb(126, 20, 120)
HSLhsl(303, 73%, 29%)
HSVhsv(303, 84%, 49%)
CMYKcmyk(0%, 84.1%, 4.8%, 50.6%)
CIE-LABlab(30.14, 53.65, -30.89)
CIE-LCHlch(30.14, 61.90, 330.06°)
OKLaboklab(42.11% 0.1528 -0.0853)
OKLCHoklch(42.11% 0.175 330.8)
XYZxyz(12.2445, 6.2930, 18.3354)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1478 #147E1A
analogous
#4F147E #7E1478 #7E1443
triadic
#7E1478 #787E14 #14787E
tetradic
#7E1478 #7E4F14 #147E1A #14437E
square
#7E1478 #7E4F14 #147E1A #14437E
split-complementary
#7E1478 #437E14 #147E4F
monochromatic
#1A0419 #490C46 #7E1478 #B31CAA #DE2ED4

Accessibility & contrast

On white

9.30
#7E1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1478
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1478#FFFFFF#000000##FFFFFF
##7E14781.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7B
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#832447
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1478;
/* rgb */ color: rgb(126, 20, 120);
/* oklch */ color: oklch(42.1% 0.175 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7619f',
    500: '#7e1478',
    950: '#000000',
  },
}
SCSS
$custom: #7e1478;
$custom-light: #a7619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1478",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 303.396,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42112,
    "c": 0.175,
    "h": 330.8
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#7E1478
secondary
#3AB341
accent
#EF4338
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1478

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

Preview Lab → · Contrast checker → · Palette generator →

#7E1478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva