#7E1371#7E1371

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

Color values

HEX#7E1371
RGBrgb(126, 19, 113)
HSLhsl(307, 74%, 28%)
HSVhsv(307, 85%, 49%)
CMYKcmyk(0%, 84.9%, 10.3%, 50.6%)
CIE-LABlab(29.65, 52.79, -27.21)
CIE-LCHlch(29.65, 59.39, 332.73°)
OKLaboklab(41.63% 0.1535 -0.0747)
OKLCHoklch(41.63% 0.171 334)
XYZxyz(11.8178, 6.0947, 16.1736)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1371 #137E20
analogous
#55137E #7E1371 #7E133B
triadic
#7E1371 #717E13 #13717E
tetradic
#7E1371 #7E5513 #137E20 #133B7E
square
#7E1371 #7E5513 #137E20 #133B7E
split-complementary
#7E1371 #3B7E13 #137E55
monochromatic
#1B0418 #490B41 #7E1371 #B31BA1 #DF2CC9

Accessibility & contrast

On white

9.46
#7E1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1371
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1371#FFFFFF#000000##FFFFFF
##7E13711.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1371;
/* rgb */ color: rgb(126, 19, 113);
/* oklch */ color: oklch(41.6% 0.171 334.0);
Tailwind
colors: {
  custom: {
    50: '#a7619a',
    500: '#7e1371',
    950: '#000000',
  },
}
SCSS
$custom: #7e1371;
$custom-light: #a7619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1371",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 307.29,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41633,
    "c": 0.17067,
    "h": 334
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#7E1371
secondary
#39B448
accent
#F04E37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1371

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

Preview Lab → · Contrast checker → · Palette generator →

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