#7E2B78#7E2B78

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

Color values

HEX#7E2B78
RGBrgb(126, 43, 120)
HSLhsl(304, 49%, 33%)
HSVhsv(304, 66%, 49%)
CMYKcmyk(0%, 65.9%, 4.8%, 50.6%)
CIE-LABlab(32.96, 45.63, -26.43)
CIE-LCHlch(32.96, 52.73, 329.91°)
OKLaboklab(44.14% 0.1297 -0.0726)
OKLCHoklch(44.14% 0.149 330.7)
XYZxyz(12.8582, 7.5204, 18.5400)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B78 #2B7E31
analogous
#5A2B7E #7E2B78 #7E2B4E
triadic
#7E2B78 #787E2B #2B787E
tetradic
#7E2B78 #7E5A2B #2B7E31 #2B4E7E
square
#7E2B78 #7E5A2B #2B7E31 #2B4E7E
split-complementary
#7E2B78 #4E7E2B #2B7E5A
monochromatic
#230C21 #501B4D #7E2B78 #AC3BA3 #C75CC0

Accessibility & contrast

On white

8.39
#7E2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B78
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B78#FFFFFF#000000##FFFFFF
##7E2B781.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467A
Deuteranopia (green-blind)
#425276
Tritanopia (blue-blind)
#83344D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2b78;
/* rgb */ color: rgb(126, 43, 120);
/* oklch */ color: oklch(44.1% 0.149 330.7);
Tailwind
colors: {
  custom: {
    50: '#a66b9f',
    500: '#7e2b78',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b78;
$custom-light: #a66b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b78",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 304.337,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44142,
    "c": 0.14862,
    "h": 330.7
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

primary
#7E2B78
secondary
#58AD5E
accent
#D9594F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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