#7E1D8F#7E1D8F

#7E1D8F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.185 H 321.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7E1D8F
RGBrgb(126, 29, 143)
HSLhsl(291, 66%, 34%)
HSVhsv(291, 80%, 56%)
CMYKcmyk(11.9%, 79.7%, 0%, 43.9%)
CIE-LABlab(32.48, 55.11, -41.53)
CIE-LCHlch(32.48, 69.01, 323.00°)
OKLaboklab(44.24% 0.1441 -0.1164)
OKLCHoklch(44.24% 0.185 321.1)
XYZxyz(14.0009, 7.2983, 26.6525)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8F #2E8F1D
analogous
#451D8F #7E1D8F #8F1D67
triadic
#7E1D8F #8F7E1D #1D8F7E
tetradic
#7E1D8F #8F451D #2E8F1D #1D678F
square
#7E1D8F #8F451D #2E8F1D #1D678F
split-complementary
#7E1D8F #678F1D #1D8F45
monochromatic
#240829 #51135C #7E1D8F #AB27C2 #C54CDB

Accessibility & contrast

On white

8.54
#7E1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D8F
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8F#FFFFFF#000000##FFFFFF
##7E1D8F1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#2B508C
Tritanopia (blue-blind)
#7F3556
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8f;
/* rgb */ color: rgb(126, 29, 143);
/* oklch */ color: oklch(44.2% 0.185 321.1);
Tailwind
colors: {
  custom: {
    50: '#a766b0',
    500: '#7e1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8f;
$custom-light: #a766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8f",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 291.053,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44235,
    "c": 0.18524,
    "h": 321.1
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#7E1D8F
secondary
#5CBD4B
accent
#E93F58
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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