#7E2472#7E2472

#7E2472 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.153 H 333.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E2472
RGBrgb(126, 36, 114)
HSLhsl(308, 56%, 32%)
HSVhsv(308, 71%, 49%)
CMYKcmyk(0%, 71.4%, 9.5%, 50.6%)
CIE-LABlab(31.61, 47.51, -24.77)
CIE-LCHlch(31.61, 53.58, 332.46°)
OKLaboklab(43.06% 0.1375 -0.0678)
OKLCHoklch(43.06% 0.153 333.8)
XYZxyz(12.2724, 6.9133, 16.6044)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2472 #247E30
analogous
#5D247E #7E2472 #7E2445
triadic
#7E2472 #727E24 #24727E
tetradic
#7E2472 #7E5D24 #247E30 #24457E
square
#7E2472 #7E5D24 #247E30 #24457E
split-complementary
#7E2472 #457E24 #247E5D
monochromatic
#1F091C #4E1647 #7E2472 #AE329D #CD50BC

Accessibility & contrast

On white

8.81
#7E2472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E2472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2472
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2472#FFFFFF#000000##FFFFFF
##7E24721.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224274
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#842C48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2472;
/* rgb */ color: rgb(126, 36, 114);
/* oklch */ color: oklch(43.1% 0.153 333.8);
Tailwind
colors: {
  custom: {
    50: '#a6679b',
    500: '#7e2472',
    950: '#000000',
  },
}
SCSS
$custom: #7e2472;
$custom-light: #a6679b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2472",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 308,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43057,
    "c": 0.15332,
    "h": 333.8
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#7E2472
secondary
#4EB05B
accent
#DF5D49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2472

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

Preview Lab → · Contrast checker → · Palette generator →

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