#7E1979#7E1979

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

Color values

HEX#7E1979
RGBrgb(126, 25, 121)
HSLhsl(303, 67%, 30%)
HSVhsv(303, 80%, 49%)
CMYKcmyk(0%, 80.2%, 4%, 50.6%)
CIE-LABlab(30.67, 52.45, -30.68)
CIE-LCHlch(30.67, 60.76, 329.67°)
OKLaboklab(42.51% 0.1488 -0.0848)
OKLCHoklch(42.51% 0.171 330.3)
XYZxyz(12.4030, 6.5124, 18.6892)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1979 #197E1E
analogous
#50197E #7E1979 #7E1947
triadic
#7E1979 #797E19 #19797E
tetradic
#7E1979 #7E5019 #197E1E #19477E
square
#7E1979 #7E5019 #197E1E #19477E
split-complementary
#7E1979 #477E19 #197E50
monochromatic
#1A0519 #4B0F48 #7E1979 #B123AA #D83AD0

Accessibility & contrast

On white

9.12
#7E1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1979
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1979#FFFFFF#000000##FFFFFF
##7E19791.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09407C
Deuteranopia (green-blind)
#394D77
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1979;
/* rgb */ color: rgb(126, 25, 121);
/* oklch */ color: oklch(42.5% 0.171 330.3);
Tailwind
colors: {
  custom: {
    50: '#a763a0',
    500: '#7e1979',
    950: '#000000',
  },
}
SCSS
$custom: #7e1979;
$custom-light: #a763a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1979",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 302.97,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.17128,
    "h": 330.3
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#7E1979
secondary
#41B246
accent
#EA473E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1979

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

Preview Lab → · Contrast checker → · Palette generator →

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