#7E2179#7E2179

#7E2179 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.163 H 330.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E2179
RGBrgb(126, 33, 121)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 74%, 49%)
CMYKcmyk(0%, 73.8%, 4%, 50.6%)
CIE-LABlab(31.59, 49.81, -29.23)
CIE-LCHlch(31.59, 57.76, 329.60°)
OKLaboklab(43.17% 0.1413 -0.0806)
OKLCHoklch(43.17% 0.163 330.3)
XYZxyz(12.5992, 6.9048, 18.7546)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2179 #217E26
analogous
#54217E #7E2179 #7E214A
triadic
#7E2179 #797E21 #21797E
tetradic
#7E2179 #7E5421 #217E26 #214A7E
square
#7E2179 #7E5421 #217E26 #214A7E
split-complementary
#7E2179 #4A7E21 #217E54
monochromatic
#1D081C #4E144A #7E2179 #AE2EA8 #D04AC8

Accessibility & contrast

On white

8.82
#7E2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2179
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2179#FFFFFF#000000##FFFFFF
##7E21791.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17427B
Deuteranopia (green-blind)
#3D4F77
Tritanopia (blue-blind)
#832D4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2179;
/* rgb */ color: rgb(126, 33, 121);
/* oklch */ color: oklch(43.2% 0.163 330.3);
Tailwind
colors: {
  custom: {
    50: '#a766a0',
    500: '#7e2179',
    950: '#000000',
  },
}
SCSS
$custom: #7e2179;
$custom-light: #a766a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2179",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 303.226,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43167,
    "c": 0.16266,
    "h": 330.3
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#7E2179
secondary
#4AB150
accent
#E24E46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2179

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

Preview Lab → · Contrast checker → · Palette generator →

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