#7E1179#7E1179

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

Color values

HEX#7E1179
RGBrgb(126, 17, 121)
HSLhsl(303, 76%, 28%)
HSVhsv(303, 87%, 49%)
CMYKcmyk(0%, 86.5%, 4%, 50.6%)
CIE-LABlab(29.96, 54.52, -31.82)
CIE-LCHlch(29.96, 63.12, 329.73°)
OKLaboklab(42% 0.1548 -0.088)
OKLCHoklch(42% 0.178 330.4)
XYZxyz(12.2558, 6.2180, 18.6402)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1179 #117E16
analogous
#4C117E #7E1179 #7E1143
triadic
#7E1179 #797E11 #11797E
tetradic
#7E1179 #7E4C11 #117E16 #11437E
square
#7E1179 #7E4C11 #117E16 #11437E
split-complementary
#7E1179 #437E11 #117E4C
monochromatic
#1B041A #480A45 #7E1179 #B418AD #E227D9

Accessibility & contrast

On white

9.36
#7E1179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1179
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1179#FFFFFF#000000##FFFFFF
##7E11791.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#374B77
Tritanopia (blue-blind)
#832347
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1179;
/* rgb */ color: rgb(126, 17, 121);
/* oklch */ color: oklch(42.0% 0.178 330.4);
Tailwind
colors: {
  custom: {
    50: '#a761a0',
    500: '#7e1179',
    950: '#000000',
  },
}
SCSS
$custom: #7e1179;
$custom-light: #a761a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1179",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 121
  },
  "hsl": {
    "h": 302.752,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.42001,
    "c": 0.17807,
    "h": 330.4
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#7E1179
secondary
#37B43D
accent
#F33E35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1179

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

Preview Lab → · Contrast checker → · Palette generator →

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