#7E1176#7E1176

#7E1176 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.176 H 331.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7E1176
RGBrgb(126, 17, 118)
HSLhsl(304, 76%, 28%)
HSVhsv(304, 87%, 49%)
CMYKcmyk(0%, 86.5%, 6.3%, 50.6%)
CIE-LABlab(29.78, 54.04, -30.20)
CIE-LCHlch(29.78, 61.90, 330.80°)
OKLaboklab(41.82% 0.1549 -0.0833)
OKLCHoklch(41.82% 0.176 331.7)
XYZxyz(12.0747, 6.1456, 17.6863)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1176 #117E19
analogous
#50117E #7E1176 #7E113F
triadic
#7E1176 #767E11 #11767E
tetradic
#7E1176 #7E5011 #117E19 #113F7E
square
#7E1176 #7E5011 #117E19 #113F7E
split-complementary
#7E1176 #3F7E11 #117E50
monochromatic
#1B0419 #480A43 #7E1176 #B418A8 #E227D4

Accessibility & contrast

On white

9.42
#7E1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1176
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1176#FFFFFF#000000##FFFFFF
##7E11761.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023D78
Deuteranopia (green-blind)
#384B74
Tritanopia (blue-blind)
#842145
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1176;
/* rgb */ color: rgb(126, 17, 118);
/* oklch */ color: oklch(41.8% 0.176 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7609e',
    500: '#7e1176',
    950: '#000000',
  },
}
SCSS
$custom: #7e1176;
$custom-light: #a7609e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1176",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 304.404,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.17586,
    "h": 331.7
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#7E1176
secondary
#37B440
accent
#F34335
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1176

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

Preview Lab → · Contrast checker → · Palette generator →

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