#7E2A78#7E2A78

#7E2A78 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.150 H 330.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7E2A78
RGBrgb(126, 42, 120)
HSLhsl(304, 50%, 33%)
HSVhsv(304, 67%, 49%)
CMYKcmyk(0%, 66.7%, 4.8%, 50.6%)
CIE-LABlab(32.81, 46.06, -26.68)
CIE-LCHlch(32.81, 53.23, 329.92°)
OKLaboklab(44.03% 0.1309 -0.0733)
OKLCHoklch(44.03% 0.15 330.7)
XYZxyz(12.8223, 7.4486, 18.5280)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A78 #2A7E30
analogous
#5A2A7E #7E2A78 #7E2A4E
triadic
#7E2A78 #787E2A #2A787E
tetradic
#7E2A78 #7E5A2A #2A7E30 #2A4E7E
square
#7E2A78 #7E5A2A #2A7E30 #2A4E7E
split-complementary
#7E2A78 #4E7E2A #2A7E5A
monochromatic
#220B21 #501B4C #7E2A78 #AC39A4 #C85AC0

Accessibility & contrast

On white

8.44
#7E2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A78
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A78#FFFFFF#000000##FFFFFF
##7E2A781.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24467A
Deuteranopia (green-blind)
#425176
Tritanopia (blue-blind)
#83334D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2a78;
/* rgb */ color: rgb(126, 42, 120);
/* oklch */ color: oklch(44.0% 0.150 330.7);
Tailwind
colors: {
  custom: {
    50: '#a66a9f',
    500: '#7e2a78',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a78;
$custom-light: #a66a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a78",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 304.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44028,
    "c": 0.15005,
    "h": 330.7
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#7E2A78
secondary
#56AE5C
accent
#DA584E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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