#7E1472#7E1472

#7E1472 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 333.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7E1472
RGBrgb(126, 20, 114)
HSLhsl(307, 73%, 29%)
HSVhsv(307, 84%, 49%)
CMYKcmyk(0%, 84.1%, 9.5%, 50.6%)
CIE-LABlab(29.79, 52.69, -27.63)
CIE-LCHlch(29.79, 59.50, 332.33°)
OKLaboklab(41.75% 0.1528 -0.0759)
OKLCHoklch(41.75% 0.171 333.6)
XYZxyz(11.8917, 6.1519, 16.4775)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1472 #147E20
analogous
#55147E #7E1472 #7E143D
triadic
#7E1472 #727E14 #14727E
tetradic
#7E1472 #7E5514 #147E20 #143D7E
square
#7E1472 #7E5514 #147E20 #143D7E
split-complementary
#7E1472 #3D7E14 #147E55
monochromatic
#1A0418 #490C42 #7E1472 #B31CA2 #DE2ECA

Accessibility & contrast

On white

9.42
#7E1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1472
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1472#FFFFFF#000000##FFFFFF
##7E14721.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#842143
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1472;
/* rgb */ color: rgb(126, 20, 114);
/* oklch */ color: oklch(41.8% 0.171 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1472',
    950: '#000000',
  },
}
SCSS
$custom: #7e1472;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1472",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 306.792,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41752,
    "c": 0.17057,
    "h": 333.6
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#7E1472
secondary
#3AB348
accent
#EF4D38
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1472

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

Preview Lab → · Contrast checker → · Palette generator →

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