#7E2172#7E2172

#7E2172 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.157 H 333.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7E2172
RGBrgb(126, 33, 114)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 74%, 49%)
CMYKcmyk(0%, 73.8%, 9.5%, 50.6%)
CIE-LABlab(31.21, 48.64, -25.40)
CIE-LCHlch(31.21, 54.88, 332.43°)
OKLaboklab(42.77% 0.1409 -0.0696)
OKLCHoklch(42.77% 0.157 333.7)
XYZxyz(12.1854, 6.7393, 16.5754)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2172 #217E2D
analogous
#5B217E #7E2172 #7E2143
triadic
#7E2172 #727E21 #21727E
tetradic
#7E2172 #7E5B21 #217E2D #21437E
square
#7E2172 #7E5B21 #217E2D #21437E
split-complementary
#7E2172 #437E21 #217E5B
monochromatic
#1D081A #4E1446 #7E2172 #AE2E9E #D04ABE

Accessibility & contrast

On white

8.95
#7E2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2172
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2172#FFFFFF#000000##FFFFFF
##7E21721.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4174
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#842947
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2172;
/* rgb */ color: rgb(126, 33, 114);
/* oklch */ color: oklch(42.8% 0.157 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7669b',
    500: '#7e2172',
    950: '#000000',
  },
}
SCSS
$custom: #7e2172;
$custom-light: #a7669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2172",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 307.742,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42766,
    "c": 0.1571,
    "h": 333.7
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#7E2172
secondary
#4AB157
accent
#E25A46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2172

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

Preview Lab → · Contrast checker → · Palette generator →

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