#7E1372#7E1372

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

Color values

HEX#7E1372
RGBrgb(126, 19, 114)
HSLhsl(307, 74%, 28%)
HSVhsv(307, 85%, 49%)
CMYKcmyk(0%, 84.9%, 9.5%, 50.6%)
CIE-LABlab(29.71, 52.94, -27.76)
CIE-LCHlch(29.71, 59.78, 332.33°)
OKLaboklab(41.69% 0.1535 -0.0763)
OKLCHoklch(41.69% 0.171 333.6)
XYZxyz(11.8744, 6.1173, 16.4717)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1372 #137E1F
analogous
#54137E #7E1372 #7E133C
triadic
#7E1372 #727E13 #13727E
tetradic
#7E1372 #7E5413 #137E1F #133C7E
square
#7E1372 #7E5413 #137E1F #133C7E
split-complementary
#7E1372 #3C7E13 #137E54
monochromatic
#1B0418 #490B42 #7E1372 #B31BA2 #DF2CCB

Accessibility & contrast

On white

9.45
#7E1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1372
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1372#FFFFFF#000000##FFFFFF
##7E13721.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1372;
/* rgb */ color: rgb(126, 19, 114);
/* oklch */ color: oklch(41.7% 0.171 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7619b',
    500: '#7e1372',
    950: '#000000',
  },
}
SCSS
$custom: #7e1372;
$custom-light: #a7619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1372",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 306.729,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41691,
    "c": 0.1714,
    "h": 333.6
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#7E1372
secondary
#39B447
accent
#F04C37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1372

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

Preview Lab → · Contrast checker → · Palette generator →

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