#7E1A79#7E1A79

#7E1A79 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.170 H 330.3°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7E1A79
RGBrgb(126, 26, 121)
HSLhsl(303, 66%, 30%)
HSVhsv(303, 79%, 49%)
CMYKcmyk(0%, 79.4%, 4%, 50.6%)
CIE-LABlab(30.77, 52.15, -30.52)
CIE-LCHlch(30.77, 60.42, 329.66°)
OKLaboklab(42.58% 0.148 -0.0843)
OKLCHoklch(42.58% 0.17 330.3)
XYZxyz(12.4247, 6.5559, 18.6965)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A79 #1A7E1F
analogous
#511A7E #7E1A79 #7E1A47
triadic
#7E1A79 #797E1A #1A797E
tetradic
#7E1A79 #7E511A #1A7E1F #1A477E
square
#7E1A79 #7E511A #1A7E1F #1A477E
split-complementary
#7E1A79 #477E1A #1A7E51
monochromatic
#190518 #4B1048 #7E1A79 #B124AA #D73CCF

Accessibility & contrast

On white

9.09
#7E1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A79
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A79#FFFFFF#000000##FFFFFF
##7E1A791.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B407C
Deuteranopia (green-blind)
#3A4D77
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1a79;
/* rgb */ color: rgb(126, 26, 121);
/* oklch */ color: oklch(42.6% 0.170 330.3);
Tailwind
colors: {
  custom: {
    50: '#a763a0',
    500: '#7e1a79',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a79;
$custom-light: #a763a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a79",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 303,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42583,
    "c": 0.1703,
    "h": 330.3
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7E1A79
secondary
#42B247
accent
#E9483F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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