#7E1771#7E1771

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

Color values

HEX#7E1771
RGBrgb(126, 23, 113)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 81.7%, 10.3%, 50.6%)
CIE-LABlab(30.01, 51.74, -26.64)
CIE-LCHlch(30.01, 58.19, 332.76°)
OKLaboklab(41.89% 0.1504 -0.073)
OKLCHoklch(41.89% 0.167 334.1)
XYZxyz(11.8913, 6.2417, 16.1981)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1771 #177E24
analogous
#58177E #7E1771 #7E173E
triadic
#7E1771 #717E17 #17717E
tetradic
#7E1771 #7E5817 #177E24 #173E7E
square
#7E1771 #7E5817 #177E24 #173E7E
split-complementary
#7E1771 #3E7E17 #177E58
monochromatic
#1A0517 #4A0E43 #7E1771 #B2209F #DA35C5

Accessibility & contrast

On white

9.34
#7E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1771
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1771#FFFFFF#000000##FFFFFF
##7E17711.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#842244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1771;
/* rgb */ color: rgb(126, 23, 113);
/* oklch */ color: oklch(41.9% 0.167 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7629a',
    500: '#7e1771',
    950: '#000000',
  },
}
SCSS
$custom: #7e1771;
$custom-light: #a7629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1771",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 307.573,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.16717,
    "h": 334.1
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#7E1771
secondary
#3EB34D
accent
#EC523C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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