#7E1E7D#7E1E7D

#7E1E7D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.169 H 328.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E1E7D
RGBrgb(126, 30, 125)
HSLhsl(301, 62%, 31%)
HSVhsv(301, 76%, 49%)
CMYKcmyk(0%, 76.2%, 0.8%, 50.6%)
CIE-LABlab(31.45, 51.55, -31.96)
CIE-LCHlch(31.45, 60.65, 328.20°)
OKLaboklab(43.14% 0.1443 -0.0885)
OKLCHoklch(43.14% 0.169 328.5)
XYZxyz(12.7700, 6.8458, 20.0468)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E7D #1E7E1F
analogous
#4F1E7E #7E1E7D #7E1E4D
triadic
#7E1E7D #7D7E1E #1E7D7E
tetradic
#7E1E7D #7E4F1E #1E7E1F #1E4D7E
square
#7E1E7D #7E4F1E #1E7E1F #1E4D7E
split-complementary
#7E1E7D #4D7E1E #1E7E4F
monochromatic
#1B061B #4D124C #7E1E7D #AF2AAE #D244D1

Accessibility & contrast

On white

8.86
#7E1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E7D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E7D#FFFFFF#000000##FFFFFF
##7E1E7D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4280
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#822D4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1e7d;
/* rgb */ color: rgb(126, 30, 125);
/* oklch */ color: oklch(43.1% 0.169 328.5);
Tailwind
colors: {
  custom: {
    50: '#a765a3',
    500: '#7e1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e7d;
$custom-light: #a765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e7d",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 300.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43144,
    "c": 0.16931,
    "h": 328.5
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#7E1E7D
secondary
#47B148
accent
#E54543
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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