#7E1178#7E1178

#7E1178 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.177 H 330.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7E1178
RGBrgb(126, 17, 120)
HSLhsl(303, 76%, 28%)
HSVhsv(303, 87%, 49%)
CMYKcmyk(0%, 86.5%, 4.8%, 50.6%)
CIE-LABlab(29.90, 54.36, -31.28)
CIE-LCHlch(29.90, 62.71, 330.08°)
OKLaboklab(41.94% 0.1548 -0.0864)
OKLCHoklch(41.94% 0.177 330.8)
XYZxyz(12.1948, 6.1936, 18.3189)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1178 #117E17
analogous
#4D117E #7E1178 #7E1141
triadic
#7E1178 #787E11 #11787E
tetradic
#7E1178 #7E4D11 #117E17 #11417E
square
#7E1178 #7E4D11 #117E17 #11417E
split-complementary
#7E1178 #417E11 #117E4D
monochromatic
#1B041A #480A45 #7E1178 #B418AB #E227D8

Accessibility & contrast

On white

9.38
#7E1178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1178
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1178#FFFFFF#000000##FFFFFF
##7E11781.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#374B76
Tritanopia (blue-blind)
#832346
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1178;
/* rgb */ color: rgb(126, 17, 120);
/* oklch */ color: oklch(41.9% 0.177 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7619f',
    500: '#7e1178',
    950: '#000000',
  },
}
SCSS
$custom: #7e1178;
$custom-light: #a7619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1178",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 120
  },
  "hsl": {
    "h": 303.303,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41939,
    "c": 0.17733,
    "h": 330.8
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#7E1178
secondary
#37B43E
accent
#F33F35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1178

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

Preview Lab → · Contrast checker → · Palette generator →

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