#7E1672#7E1672

#7E1672 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.169 H 333.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7E1672
RGBrgb(126, 22, 114)
HSLhsl(307, 70%, 29%)
HSVhsv(307, 83%, 49%)
CMYKcmyk(0%, 82.5%, 9.5%, 50.6%)
CIE-LABlab(29.97, 52.17, -27.34)
CIE-LCHlch(29.97, 58.90, 332.34°)
OKLaboklab(41.88% 0.1512 -0.0751)
OKLCHoklch(41.88% 0.169 333.6)
XYZxyz(11.9285, 6.2254, 16.4897)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1672 #167E22
analogous
#56167E #7E1672 #7E163E
triadic
#7E1672 #727E16 #16727E
tetradic
#7E1672 #7E5616 #167E22 #163E7E
square
#7E1672 #7E5616 #167E22 #163E7E
split-complementary
#7E1672 #3E7E16 #167E56
monochromatic
#1A0518 #4A0D43 #7E1672 #B21FA1 #DB33C8

Accessibility & contrast

On white

9.35
#7E1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1672
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1672#FFFFFF#000000##FFFFFF
##7E16721.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#842244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1672;
/* rgb */ color: rgb(126, 22, 114);
/* oklch */ color: oklch(41.9% 0.169 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7629b',
    500: '#7e1672',
    950: '#000000',
  },
}
SCSS
$custom: #7e1672;
$custom-light: #a7629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1672",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 306.923,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41882,
    "c": 0.16882,
    "h": 333.6
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#7E1672
secondary
#3DB34B
accent
#ED4F3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1672

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

Preview Lab → · Contrast checker → · Palette generator →

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