#7E1878#7E1878

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

Color values

HEX#7E1878
RGBrgb(126, 24, 120)
HSLhsl(304, 68%, 29%)
HSVhsv(304, 81%, 49%)
CMYKcmyk(0%, 81%, 4.8%, 50.6%)
CIE-LABlab(30.51, 52.57, -30.30)
CIE-LCHlch(30.51, 60.68, 330.04°)
OKLaboklab(42.38% 0.1497 -0.0837)
OKLCHoklch(42.38% 0.171 330.8)
XYZxyz(12.3210, 6.4460, 18.3609)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1878 #187E1E
analogous
#51187E #7E1878 #7E1845
triadic
#7E1878 #787E18 #18787E
tetradic
#7E1878 #7E5118 #187E1E #18457E
square
#7E1878 #7E5118 #187E1E #18457E
split-complementary
#7E1878 #457E18 #187E51
monochromatic
#1A0518 #4B0E47 #7E1878 #B122A9 #D937CF

Accessibility & contrast

On white

9.17
#7E1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1878
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1878#FFFFFF#000000##FFFFFF
##7E18781.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7A
Deuteranopia (green-blind)
#3A4D76
Tritanopia (blue-blind)
#832748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1878;
/* rgb */ color: rgb(126, 24, 120);
/* oklch */ color: oklch(42.4% 0.171 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7639f',
    500: '#7e1878',
    950: '#000000',
  },
}
SCSS
$custom: #7e1878;
$custom-light: #a7639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1878",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 303.529,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42376,
    "c": 0.17147,
    "h": 330.8
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#7E1878
secondary
#3FB246
accent
#EB473D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1878

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

Preview Lab → · Contrast checker → · Palette generator →

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