#7E1C74#7E1C74

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

Color values

HEX#7E1C74
RGBrgb(126, 28, 116)
HSLhsl(306, 64%, 30%)
HSVhsv(306, 78%, 49%)
CMYKcmyk(0%, 77.8%, 7.9%, 50.6%)
CIE-LABlab(30.71, 50.70, -27.46)
CIE-LCHlch(30.71, 57.66, 331.56°)
OKLaboklab(42.44% 0.1461 -0.0754)
OKLCHoklch(42.44% 0.164 332.7)
XYZxyz(12.1719, 6.5281, 17.1386)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C74 #1C7E26
analogous
#571C7E #7E1C74 #7E1C43
triadic
#7E1C74 #747E1C #1C747E
tetradic
#7E1C74 #7E571C #1C7E26 #1C437E
square
#7E1C74 #7E571C #1C7E26 #1C437E
split-complementary
#7E1C74 #437E1C #1C7E57
monochromatic
#1A0618 #4C1146 #7E1C74 #B027A2 #D540C5

Accessibility & contrast

On white

9.11
#7E1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1C74
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C74#FFFFFF#000000##FFFFFF
##7E1C741.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#842746
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1c74;
/* rgb */ color: rgb(126, 28, 116);
/* oklch */ color: oklch(42.4% 0.164 332.7);
Tailwind
colors: {
  custom: {
    50: '#a7649c',
    500: '#7e1c74',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c74;
$custom-light: #a7649c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c74",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 306.122,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.16439,
    "h": 332.7
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#7E1C74
secondary
#44B24F
accent
#E75241
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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