#7E1879#7E1879

#7E1879 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.172 H 330.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E1879
RGBrgb(126, 24, 121)
HSLhsl(303, 68%, 29%)
HSVhsv(303, 81%, 49%)
CMYKcmyk(0%, 81%, 4%, 50.6%)
CIE-LABlab(30.57, 52.74, -30.84)
CIE-LCHlch(30.57, 61.09, 329.68°)
OKLaboklab(42.44% 0.1497 -0.0852)
OKLCHoklch(42.44% 0.172 330.3)
XYZxyz(12.3820, 6.4704, 18.6822)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1879 #187E1D
analogous
#50187E #7E1879 #7E1846
triadic
#7E1879 #797E18 #18797E
tetradic
#7E1879 #7E5018 #187E1D #18467E
square
#7E1879 #7E5018 #187E1D #18467E
split-complementary
#7E1879 #467E18 #187E50
monochromatic
#1A0519 #4B0E48 #7E1879 #B122AA #D937D1

Accessibility & contrast

On white

9.16
#7E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1879
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1879#FFFFFF#000000##FFFFFF
##7E18791.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1879;
/* rgb */ color: rgb(126, 24, 121);
/* oklch */ color: oklch(42.4% 0.172 330.3);
Tailwind
colors: {
  custom: {
    50: '#a763a0',
    500: '#7e1879',
    950: '#000000',
  },
}
SCSS
$custom: #7e1879;
$custom-light: #a763a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1879",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 302.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.17224,
    "h": 330.3
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#7E1879
secondary
#3FB245
accent
#EB453D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1879

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

Preview Lab → · Contrast checker → · Palette generator →

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