#7E2572#7E2572

#7E2572 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.152 H 333.8°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7E2572
RGBrgb(126, 37, 114)
HSLhsl(308, 55%, 32%)
HSVhsv(308, 71%, 49%)
CMYKcmyk(0%, 70.6%, 9.5%, 50.6%)
CIE-LABlab(31.75, 47.11, -24.55)
CIE-LCHlch(31.75, 53.12, 332.48°)
OKLaboklab(43.16% 0.1364 -0.0671)
OKLCHoklch(43.16% 0.152 333.8)
XYZxyz(12.3031, 6.9747, 16.6146)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2572 #257E31
analogous
#5E257E #7E2572 #7E2546
triadic
#7E2572 #727E25 #25727E
tetradic
#7E2572 #7E5E25 #257E31 #25467E
square
#7E2572 #7E5E25 #257E31 #25467E
split-complementary
#7E2572 #467E25 #257E5E
monochromatic
#1F091C #4F1747 #7E2572 #AD339D #CC51BB

Accessibility & contrast

On white

8.77
#7E2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2572
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2572#FFFFFF#000000##FFFFFF
##7E25721.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234274
Deuteranopia (green-blind)
#424F70
Tritanopia (blue-blind)
#842C48
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2572;
/* rgb */ color: rgb(126, 37, 114);
/* oklch */ color: oklch(43.2% 0.152 333.8);
Tailwind
colors: {
  custom: {
    50: '#a6689b',
    500: '#7e2572',
    950: '#000000',
  },
}
SCSS
$custom: #7e2572;
$custom-light: #a6689b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2572",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 308.09,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43159,
    "c": 0.15201,
    "h": 333.8
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#7E2572
secondary
#4FB05C
accent
#DE5E4A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2572

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

Preview Lab → · Contrast checker → · Palette generator →

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