#7E1C6E#7E1C6E

#7E1C6E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.160 H 335.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7E1C6E
RGBrgb(126, 28, 110)
HSLhsl(310, 64%, 30%)
HSVhsv(310, 78%, 49%)
CMYKcmyk(0%, 77.8%, 12.7%, 50.6%)
CIE-LABlab(30.38, 49.74, -24.14)
CIE-LCHlch(30.38, 55.29, 334.11°)
OKLaboklab(42.11% 0.1457 -0.0659)
OKLCHoklch(42.11% 0.16 335.7)
XYZxyz(11.8341, 6.3930, 15.3595)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C6E #1C7E2C
analogous
#5D1C7E #7E1C6E #7E1C3D
triadic
#7E1C6E #6E7E1C #1C6E7E
tetradic
#7E1C6E #7E5D1C #1C7E2C #1C3D7E
square
#7E1C6E #7E5D1C #1C7E2C #1C3D7E
split-complementary
#7E1C6E #3D7E1C #1C7E5D
monochromatic
#1A0617 #4C1142 #7E1C6E #B0279A #D540BC

Accessibility & contrast

On white

9.22
#7E1C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C6E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C6E#FFFFFF#000000##FFFFFF
##7E1C6E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E70
Deuteranopia (green-blind)
#404D6C
Tritanopia (blue-blind)
#852443
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1c6e;
/* rgb */ color: rgb(126, 28, 110);
/* oklch */ color: oklch(42.1% 0.160 335.7);
Tailwind
colors: {
  custom: {
    50: '#a76498',
    500: '#7e1c6e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c6e;
$custom-light: #a76498;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c6e",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 309.796,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.15987,
    "h": 335.7
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#7E1C6E
secondary
#44B256
accent
#E75C41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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