#7E1978#7E1978

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

Color values

HEX#7E1978
RGBrgb(126, 25, 120)
HSLhsl(304, 67%, 30%)
HSVhsv(304, 80%, 49%)
CMYKcmyk(0%, 80.2%, 4.8%, 50.6%)
CIE-LABlab(30.61, 52.28, -30.14)
CIE-LCHlch(30.61, 60.35, 330.03°)
OKLaboklab(42.45% 0.1488 -0.0832)
OKLCHoklch(42.45% 0.171 330.8)
XYZxyz(12.3420, 6.4880, 18.3679)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1978 #197E1F
analogous
#51197E #7E1978 #7E1946
triadic
#7E1978 #787E19 #19787E
tetradic
#7E1978 #7E5119 #197E1F #19467E
square
#7E1978 #7E5119 #197E1F #19467E
split-complementary
#7E1978 #467E19 #197E51
monochromatic
#1A0518 #4B0F47 #7E1978 #B123A9 #D83ACE

Accessibility & contrast

On white

9.14
#7E1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1978
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1978#FFFFFF#000000##FFFFFF
##7E19781.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1978;
/* rgb */ color: rgb(126, 25, 120);
/* oklch */ color: oklch(42.4% 0.171 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7639f',
    500: '#7e1978',
    950: '#000000',
  },
}
SCSS
$custom: #7e1978;
$custom-light: #a7639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1978",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 303.564,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.17052,
    "h": 330.8
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#7E1978
secondary
#41B247
accent
#EA483E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1978

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

Preview Lab → · Contrast checker → · Palette generator →

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