#7E1D71#7E1D71

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

Color values

HEX#7E1D71
RGBrgb(126, 29, 113)
HSLhsl(308, 63%, 30%)
HSVhsv(308, 77%, 49%)
CMYKcmyk(0%, 77%, 10.3%, 50.6%)
CIE-LABlab(30.66, 49.89, -25.62)
CIE-LCHlch(30.66, 56.08, 332.81°)
OKLaboklab(42.36% 0.1449 -0.0702)
OKLCHoklch(42.36% 0.161 334.2)
XYZxyz(12.0243, 6.5077, 16.2424)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D71 #1D7E2A
analogous
#5A1D7E #7E1D71 #7E1D40
triadic
#7E1D71 #717E1D #1D717E
tetradic
#7E1D71 #7E5A1D #1D7E2A #1D407E
square
#7E1D71 #7E5A1D #1D7E2A #1D407E
split-complementary
#7E1D71 #407E1D #1D7E5A
monochromatic
#1B0618 #4C1244 #7E1D71 #B0289E #D342C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1D71#FFFFFF#000000##FFFFFF
##7E1D711.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)
#1B3F73
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#842645
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1d71;
/* rgb */ color: rgb(126, 29, 113);
/* oklch */ color: oklch(42.4% 0.161 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7649a',
    500: '#7e1d71',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d71;
$custom-light: #a7649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d71",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 308.041,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.16101,
    "h": 334.2
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#7E1D71
secondary
#45B154
accent
#E65842
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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