#7E2772#7E2772

#7E2772 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.4% C 0.149 H 333.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7E2772
RGBrgb(126, 39, 114)
HSLhsl(308, 53%, 32%)
HSVhsv(308, 69%, 49%)
CMYKcmyk(0%, 69%, 9.5%, 50.6%)
CIE-LABlab(32.04, 46.30, -24.09)
CIE-LCHlch(32.04, 52.19, 332.51°)
OKLaboklab(43.37% 0.134 -0.0659)
OKLCHoklch(43.37% 0.149 333.8)
XYZxyz(12.3670, 7.1026, 16.6359)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2772 #277E33
analogous
#5F277E #7E2772 #7E2746
triadic
#7E2772 #727E27 #27727E
tetradic
#7E2772 #7E5F27 #277E33 #27467E
square
#7E2772 #7E5F27 #277E33 #27467E
split-complementary
#7E2772 #467E27 #277E5F
monochromatic
#210A1D #4F1948 #7E2772 #AD359C #CA55BA

Accessibility & contrast

On white

8.68
#7E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2772
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2772#FFFFFF#000000##FFFFFF
##7E27721.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254374
Deuteranopia (green-blind)
#435070
Tritanopia (blue-blind)
#842E49
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2772;
/* rgb */ color: rgb(126, 39, 114);
/* oklch */ color: oklch(43.4% 0.149 333.8);
Tailwind
colors: {
  custom: {
    50: '#a6699b',
    500: '#7e2772',
    950: '#000000',
  },
}
SCSS
$custom: #7e2772;
$custom-light: #a6699b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2772",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 308.276,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43369,
    "c": 0.1493,
    "h": 333.8
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

primary
#7E2772
secondary
#52AF5F
accent
#DC604C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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