#7E1476#7E1476

#7E1476 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.174 H 331.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E1476
RGBrgb(126, 20, 118)
HSLhsl(305, 73%, 29%)
HSVhsv(305, 84%, 49%)
CMYKcmyk(0%, 84.1%, 6.3%, 50.6%)
CIE-LABlab(30.02, 53.32, -29.81)
CIE-LCHlch(30.02, 61.09, 330.79°)
OKLaboklab(41.99% 0.1528 -0.0822)
OKLCHoklch(41.99% 0.174 331.7)
XYZxyz(12.1244, 6.2450, 17.7029)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1476 #147E1C
analogous
#51147E #7E1476 #7E1441
triadic
#7E1476 #767E14 #14767E
tetradic
#7E1476 #7E5114 #147E1C #14417E
square
#7E1476 #7E5114 #147E1C #14417E
split-complementary
#7E1476 #417E14 #147E51
monochromatic
#1A0419 #490C45 #7E1476 #B31CA7 #DE2ED1

Accessibility & contrast

On white

9.34
#7E1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1476
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1476#FFFFFF#000000##FFFFFF
##7E14761.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073D78
Deuteranopia (green-blind)
#394C74
Tritanopia (blue-blind)
#842346
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1476;
/* rgb */ color: rgb(126, 20, 118);
/* oklch */ color: oklch(42.0% 0.174 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7619e',
    500: '#7e1476',
    950: '#000000',
  },
}
SCSS
$custom: #7e1476;
$custom-light: #a7619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1476",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 304.528,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.4199,
    "c": 0.17351,
    "h": 331.7
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#7E1476
secondary
#3AB344
accent
#EF4638
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1476

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

Preview Lab → · Contrast checker → · Palette generator →

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