#7E2A79#7E2A79

#7E2A79 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.151 H 330.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7E2A79
RGBrgb(126, 42, 121)
HSLhsl(304, 50%, 33%)
HSVhsv(304, 67%, 49%)
CMYKcmyk(0%, 66.7%, 4%, 50.6%)
CIE-LABlab(32.86, 46.24, -27.22)
CIE-LCHlch(32.86, 53.66, 329.51°)
OKLaboklab(44.08% 0.131 -0.0749)
OKLCHoklch(44.08% 0.151 330.2)
XYZxyz(12.8833, 7.4730, 18.8493)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A79 #2A7E2F
analogous
#592A7E #7E2A79 #7E2A4F
triadic
#7E2A79 #797E2A #2A797E
tetradic
#7E2A79 #7E592A #2A7E2F #2A4F7E
square
#7E2A79 #7E592A #2A7E2F #2A4F7E
split-complementary
#7E2A79 #4F7E2A #2A7E59
monochromatic
#220B21 #501B4D #7E2A79 #AC39A5 #C85AC2

Accessibility & contrast

On white

8.42
#7E2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A79
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A79#FFFFFF#000000##FFFFFF
##7E2A791.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467B
Deuteranopia (green-blind)
#415177
Tritanopia (blue-blind)
#83334D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2a79;
/* rgb */ color: rgb(126, 42, 121);
/* oklch */ color: oklch(44.1% 0.151 330.2);
Tailwind
colors: {
  custom: {
    50: '#a66aa0',
    500: '#7e2a79',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a79;
$custom-light: #a66aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a79",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 303.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44084,
    "c": 0.1509,
    "h": 330.2
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#7E2A79
secondary
#56AE5B
accent
#DA574E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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