#7E1678#7E1678

#7E1678 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.173 H 330.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1678
RGBrgb(126, 22, 120)
HSLhsl(303, 70%, 29%)
HSVhsv(303, 83%, 49%)
CMYKcmyk(0%, 82.5%, 4.8%, 50.6%)
CIE-LABlab(30.32, 53.13, -30.61)
CIE-LCHlch(30.32, 61.31, 330.05°)
OKLaboklab(42.24% 0.1513 -0.0845)
OKLCHoklch(42.24% 0.173 330.8)
XYZxyz(12.2812, 6.3665, 18.3477)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1678 #167E1C
analogous
#50167E #7E1678 #7E1644
triadic
#7E1678 #787E16 #16787E
tetradic
#7E1678 #7E5016 #167E1C #16447E
square
#7E1678 #7E5016 #167E1C #16447E
split-complementary
#7E1678 #447E16 #167E50
monochromatic
#1A0519 #4A0D46 #7E1678 #B21FAA #DB33D2

Accessibility & contrast

On white

9.24
#7E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1678
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1678#FFFFFF#000000##FFFFFF
##7E16781.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#832547
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1678;
/* rgb */ color: rgb(126, 22, 120);
/* oklch */ color: oklch(42.2% 0.173 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7629f',
    500: '#7e1678',
    950: '#000000',
  },
}
SCSS
$custom: #7e1678;
$custom-light: #a7629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1678",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 303.462,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.17329,
    "h": 330.8
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#7E1678
secondary
#3DB344
accent
#ED453B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1678

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

Preview Lab → · Contrast checker → · Palette generator →

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