#7E1D72#7E1D72

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

Color values

HEX#7E1D72
RGBrgb(126, 29, 114)
HSLhsl(307, 63%, 30%)
HSVhsv(307, 77%, 49%)
CMYKcmyk(0%, 77%, 9.5%, 50.6%)
CIE-LABlab(30.71, 50.05, -26.18)
CIE-LCHlch(30.71, 56.48, 332.39°)
OKLaboklab(42.41% 0.145 -0.0718)
OKLCHoklch(42.41% 0.162 333.7)
XYZxyz(12.0809, 6.5303, 16.5405)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D72 #1D7E29
analogous
#5A1D7E #7E1D72 #7E1D41
triadic
#7E1D72 #727E1D #1D727E
tetradic
#7E1D72 #7E5A1D #1D7E29 #1D417E
square
#7E1D72 #7E5A1D #1D7E29 #1D417E
split-complementary
#7E1D72 #417E1D #1D7E5A
monochromatic
#1B0618 #4C1245 #7E1D72 #B0289F #D342C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1D72#FFFFFF#000000##FFFFFF
##7E1D721.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)
#1A3F74
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#842746
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1d72;
/* rgb */ color: rgb(126, 29, 114);
/* oklch */ color: oklch(42.4% 0.162 333.7);
Tailwind
colors: {
  custom: {
    50: '#a7649b',
    500: '#7e1d72',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d72;
$custom-light: #a7649b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d72",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 307.423,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.16177,
    "h": 333.7
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#7E1D72
secondary
#45B153
accent
#E65642
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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