#7E1171#7E1171

#7E1171 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.172 H 334.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7E1171
RGBrgb(126, 17, 113)
HSLhsl(307, 76%, 28%)
HSVhsv(307, 87%, 49%)
CMYKcmyk(0%, 86.5%, 10.3%, 50.6%)
CIE-LABlab(29.49, 53.26, -27.47)
CIE-LCHlch(29.49, 59.93, 332.72°)
OKLaboklab(41.52% 0.1549 -0.0754)
OKLCHoklch(41.52% 0.172 334)
XYZxyz(11.7854, 6.0299, 16.1628)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1171 #117E1E
analogous
#54117E #7E1171 #7E113A
triadic
#7E1171 #717E11 #11717E
tetradic
#7E1171 #7E5411 #117E1E #113A7E
square
#7E1171 #7E5411 #117E1E #113A7E
split-complementary
#7E1171 #3A7E11 #117E54
monochromatic
#1B0418 #480A41 #7E1171 #B418A1 #E227CC

Accessibility & contrast

On white

9.52
#7E1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1171
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1171#FFFFFF#000000##FFFFFF
##7E11711.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#841E42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1171;
/* rgb */ color: rgb(126, 17, 113);
/* oklch */ color: oklch(41.5% 0.172 334.0);
Tailwind
colors: {
  custom: {
    50: '#a7609a',
    500: '#7e1171',
    950: '#000000',
  },
}
SCSS
$custom: #7e1171;
$custom-light: #a7609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1171",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 307.156,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41517,
    "c": 0.17224,
    "h": 334
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#7E1171
secondary
#37B446
accent
#F34C35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7E1171

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

Preview Lab → · Contrast checker → · Palette generator →

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