#7E1772#7E1772

#7E1772 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.168 H 333.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7E1772
RGBrgb(126, 23, 114)
HSLhsl(307, 69%, 29%)
HSVhsv(307, 82%, 49%)
CMYKcmyk(0%, 81.7%, 9.5%, 50.6%)
CIE-LABlab(30.07, 51.89, -27.19)
CIE-LCHlch(30.07, 58.58, 332.35°)
OKLaboklab(41.95% 0.1504 -0.0746)
OKLCHoklch(41.95% 0.168 333.6)
XYZxyz(11.9479, 6.2644, 16.4962)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1772 #177E23
analogous
#57177E #7E1772 #7E173F
triadic
#7E1772 #727E17 #17727E
tetradic
#7E1772 #7E5717 #177E23 #173F7E
square
#7E1772 #7E5717 #177E23 #173F7E
split-complementary
#7E1772 #3F7E17 #177E57
monochromatic
#1A0517 #4A0E43 #7E1772 #B220A1 #DA35C7

Accessibility & contrast

On white

9.32
#7E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1772
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1772#FFFFFF#000000##FFFFFF
##7E17721.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1772;
/* rgb */ color: rgb(126, 23, 114);
/* oklch */ color: oklch(42.0% 0.168 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7629b',
    500: '#7e1772',
    950: '#000000',
  },
}
SCSS
$custom: #7e1772;
$custom-light: #a7629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1772",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 306.99,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41951,
    "c": 0.1679,
    "h": 333.6
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#7E1772
secondary
#3EB34C
accent
#EC503C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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