#7E1C72#7E1C72

#7E1C72 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.163 H 333.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7E1C72
RGBrgb(126, 28, 114)
HSLhsl(307, 64%, 30%)
HSVhsv(307, 78%, 49%)
CMYKcmyk(0%, 77.8%, 9.5%, 50.6%)
CIE-LABlab(30.60, 50.38, -26.36)
CIE-LCHlch(30.60, 56.85, 332.38°)
OKLaboklab(42.33% 0.1459 -0.0723)
OKLCHoklch(42.33% 0.163 333.7)
XYZxyz(12.0568, 6.4821, 16.5325)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C72 #1C7E28
analogous
#591C7E #7E1C72 #7E1C41
triadic
#7E1C72 #727E1C #1C727E
tetradic
#7E1C72 #7E591C #1C7E28 #1C417E
square
#7E1C72 #7E591C #1C7E28 #1C417E
split-complementary
#7E1C72 #417E1C #1C7E59
monochromatic
#1A0617 #4C1145 #7E1C72 #B0279F #D540C2

Accessibility & contrast

On white

9.15
#7E1C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1C72
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C72#FFFFFF#000000##FFFFFF
##7E1C721.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#842645
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1c72;
/* rgb */ color: rgb(126, 28, 114);
/* oklch */ color: oklch(42.3% 0.163 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7649b',
    500: '#7e1c72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c72;
$custom-light: #a7649b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c72",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 307.347,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42329,
    "c": 0.16286,
    "h": 333.7
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#7E1C72
secondary
#44B252
accent
#E75541
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1C72

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

Preview Lab → · Contrast checker → · Palette generator →

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