#7E2872#7E2872

#7E2872 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.5% C 0.148 H 333.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E2872
RGBrgb(126, 40, 114)
HSLhsl(308, 52%, 33%)
HSVhsv(308, 68%, 49%)
CMYKcmyk(0%, 68.3%, 9.5%, 50.6%)
CIE-LABlab(32.19, 45.88, -23.86)
CIE-LCHlch(32.19, 51.71, 332.52°)
OKLaboklab(43.48% 0.1328 -0.0652)
OKLCHoklch(43.48% 0.148 333.8)
XYZxyz(12.4003, 7.1691, 16.6470)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2872 #287E34
analogous
#5F287E #7E2872 #7E2847
triadic
#7E2872 #727E28 #28727E
tetradic
#7E2872 #7E5F28 #287E34 #28477E
square
#7E2872 #7E5F28 #287E34 #28477E
split-complementary
#7E2872 #477E28 #287E5F
monochromatic
#210B1E #501948 #7E2872 #AC379C #CA57BA

Accessibility & contrast

On white

8.63
#7E2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2872
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2872#FFFFFF#000000##FFFFFF
##7E28721.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264474
Deuteranopia (green-blind)
#435070
Tritanopia (blue-blind)
#842F49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2872;
/* rgb */ color: rgb(126, 40, 114);
/* oklch */ color: oklch(43.5% 0.148 333.8);
Tailwind
colors: {
  custom: {
    50: '#a6699b',
    500: '#7e2872',
    950: '#000000',
  },
}
SCSS
$custom: #7e2872;
$custom-light: #a6699b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2872",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 308.372,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.14791,
    "h": 333.8
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#7E2872
secondary
#53AF60
accent
#DB604D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2872

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

Preview Lab → · Contrast checker → · Palette generator →

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