#7E1778#7E1778

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

Color values

HEX#7E1778
RGBrgb(126, 23, 120)
HSLhsl(303, 69%, 29%)
HSVhsv(303, 82%, 49%)
CMYKcmyk(0%, 81.7%, 4.8%, 50.6%)
CIE-LABlab(30.41, 52.85, -30.46)
CIE-LCHlch(30.41, 61.00, 330.05°)
OKLaboklab(42.31% 0.1505 -0.0841)
OKLCHoklch(42.31% 0.172 330.8)
XYZxyz(12.3007, 6.4055, 18.3542)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1778 #177E1D
analogous
#51177E #7E1778 #7E1745
triadic
#7E1778 #787E17 #17787E
tetradic
#7E1778 #7E5117 #177E1D #17457E
square
#7E1778 #7E5117 #177E1D #17457E
split-complementary
#7E1778 #457E17 #177E51
monochromatic
#1A0519 #4A0E47 #7E1778 #B220A9 #DA35D1

Accessibility & contrast

On white

9.21
#7E1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1778
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1778#FFFFFF#000000##FFFFFF
##7E17781.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#832648
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1778;
/* rgb */ color: rgb(126, 23, 120);
/* oklch */ color: oklch(42.3% 0.172 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7629f',
    500: '#7e1778',
    950: '#000000',
  },
}
SCSS
$custom: #7e1778;
$custom-light: #a7629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1778",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 303.495,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42307,
    "c": 0.1724,
    "h": 330.8
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#7E1778
secondary
#3EB345
accent
#EC463C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1778

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

Preview Lab → · Contrast checker → · Palette generator →

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