#7E2177#7E2177

#7E2177 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.161 H 331.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2177
RGBrgb(126, 33, 119)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 74%, 49%)
CMYKcmyk(0%, 73.8%, 5.6%, 50.6%)
CIE-LABlab(31.48, 49.48, -28.14)
CIE-LCHlch(31.48, 56.92, 330.37°)
OKLaboklab(43.05% 0.1412 -0.0775)
OKLCHoklch(43.05% 0.161 331.2)
XYZxyz(12.4778, 6.8562, 18.1154)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2177 #217E28
analogous
#56217E #7E2177 #7E2148
triadic
#7E2177 #777E21 #21777E
tetradic
#7E2177 #7E5621 #217E28 #21487E
square
#7E2177 #7E5621 #217E28 #21487E
split-complementary
#7E2177 #487E21 #217E56
monochromatic
#1D081B #4E1449 #7E2177 #AE2EA5 #D04AC5

Accessibility & contrast

On white

8.86
#7E2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2177
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2177#FFFFFF#000000##FFFFFF
##7E21771.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194279
Deuteranopia (green-blind)
#3E4F75
Tritanopia (blue-blind)
#832C4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2177;
/* rgb */ color: rgb(126, 33, 119);
/* oklch */ color: oklch(43.0% 0.161 331.2);
Tailwind
colors: {
  custom: {
    50: '#a7669e',
    500: '#7e2177',
    950: '#000000',
  },
}
SCSS
$custom: #7e2177;
$custom-light: #a7669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2177",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 304.516,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.16105,
    "h": 331.2
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#7E2177
secondary
#4AB152
accent
#E25246
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2177

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

Preview Lab → · Contrast checker → · Palette generator →

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