#7E1779#7E1779

#7E1779 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.173 H 330.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7E1779
RGBrgb(126, 23, 121)
HSLhsl(303, 69%, 29%)
HSVhsv(303, 82%, 49%)
CMYKcmyk(0%, 81.7%, 4%, 50.6%)
CIE-LABlab(30.47, 53.02, -31.00)
CIE-LCHlch(30.47, 61.41, 329.69°)
OKLaboklab(42.37% 0.1505 -0.0857)
OKLCHoklch(42.37% 0.173 330.4)
XYZxyz(12.3617, 6.4299, 18.6755)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1779 #177E1C
analogous
#50177E #7E1779 #7E1746
triadic
#7E1779 #797E17 #17797E
tetradic
#7E1779 #7E5017 #177E1C #17467E
square
#7E1779 #7E5017 #177E1C #17467E
split-complementary
#7E1779 #467E17 #177E50
monochromatic
#1A0519 #4A0E47 #7E1779 #B220AB #DA35D2

Accessibility & contrast

On white

9.19
#7E1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1779
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1779#FFFFFF#000000##FFFFFF
##7E17791.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7C
Deuteranopia (green-blind)
#394D77
Tritanopia (blue-blind)
#832748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1779;
/* rgb */ color: rgb(126, 23, 121);
/* oklch */ color: oklch(42.4% 0.173 330.4);
Tailwind
colors: {
  custom: {
    50: '#a762a0',
    500: '#7e1779',
    950: '#000000',
  },
}
SCSS
$custom: #7e1779;
$custom-light: #a762a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1779",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 302.913,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42368,
    "c": 0.17316,
    "h": 330.4
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#7E1779
secondary
#3EB344
accent
#EC443C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1779

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

Preview Lab → · Contrast checker → · Palette generator →

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