#7E1177#7E1177

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

Color values

HEX#7E1177
RGBrgb(126, 17, 119)
HSLhsl(304, 76%, 28%)
HSVhsv(304, 87%, 49%)
CMYKcmyk(0%, 86.5%, 5.6%, 50.6%)
CIE-LABlab(29.84, 54.20, -30.74)
CIE-LCHlch(29.84, 62.31, 330.44°)
OKLaboklab(41.88% 0.1549 -0.0849)
OKLCHoklch(41.88% 0.177 331.3)
XYZxyz(12.1344, 6.1695, 18.0009)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1177 #117E18
analogous
#4E117E #7E1177 #7E1140
triadic
#7E1177 #777E11 #11777E
tetradic
#7E1177 #7E4E11 #117E18 #11407E
square
#7E1177 #7E4E11 #117E18 #11407E
split-complementary
#7E1177 #407E11 #117E4E
monochromatic
#1B0419 #480A44 #7E1177 #B418AA #E227D6

Accessibility & contrast

On white

9.40
#7E1177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E1177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1177
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1177#FFFFFF#000000##FFFFFF
##7E11771.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#384B75
Tritanopia (blue-blind)
#832246
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1177;
/* rgb */ color: rgb(126, 17, 119);
/* oklch */ color: oklch(41.9% 0.177 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7609e',
    500: '#7e1177',
    950: '#000000',
  },
}
SCSS
$custom: #7e1177;
$custom-light: #a7609e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1177",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 119
  },
  "hsl": {
    "h": 303.853,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41877,
    "c": 0.1766,
    "h": 331.3
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#7E1177
secondary
#37B43F
accent
#F34135
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1177

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

Preview Lab → · Contrast checker → · Palette generator →

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