#7E1D8E#7E1D8E

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

Color values

HEX#7E1D8E
RGBrgb(126, 29, 142)
HSLhsl(292, 66%, 34%)
HSVhsv(292, 80%, 56%)
CMYKcmyk(11.3%, 79.6%, 0%, 44.3%)
CIE-LABlab(32.41, 54.93, -41.02)
CIE-LCHlch(32.41, 68.55, 323.25°)
OKLaboklab(44.17% 0.1442 -0.1149)
OKLCHoklch(44.17% 0.184 321.4)
XYZxyz(13.9255, 7.2681, 26.2553)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D8E #2D8E1D
analogous
#451D8E #7E1D8E #8E1D65
triadic
#7E1D8E #8E7E1D #1D8E7E
tetradic
#7E1D8E #8E451D #2D8E1D #1D658E
square
#7E1D8E #8E451D #2D8E1D #1D658E
split-complementary
#7E1D8E #658E1D #1D8E45
monochromatic
#240828 #51135B #7E1D8E #AB27C1 #C64BDA

Accessibility & contrast

On white

8.56
#7E1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D8E
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D8E#FFFFFF#000000##FFFFFF
##7E1D8E1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2C508B
Tritanopia (blue-blind)
#7F3555
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1d8e;
/* rgb */ color: rgb(126, 29, 142);
/* oklch */ color: oklch(44.2% 0.184 321.4);
Tailwind
colors: {
  custom: {
    50: '#a766b0',
    500: '#7e1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d8e;
$custom-light: #a766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d8e",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 291.504,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44167,
    "c": 0.1844,
    "h": 321.4
  },
  "luminance": 0.07267
}

Semantic roles & 50–950 ramp

primary
#7E1D8E
secondary
#5ABD4A
accent
#E93F57
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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