#7E1E8E#7E1E8E

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

Color values

HEX#7E1E8E
RGBrgb(126, 30, 142)
HSLhsl(291, 65%, 34%)
HSVhsv(291, 79%, 56%)
CMYKcmyk(11.3%, 78.9%, 0%, 44.3%)
CIE-LABlab(32.52, 54.61, -40.84)
CIE-LCHlch(32.52, 68.19, 323.21°)
OKLaboklab(44.25% 0.1434 -0.1144)
OKLCHoklch(44.25% 0.183 321.4)
XYZxyz(13.9504, 7.3179, 26.2636)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E8E #2E8E1E
analogous
#461E8E #7E1E8E #8E1E66
triadic
#7E1E8E #8E7E1E #1E8E7E
tetradic
#7E1E8E #8E461E #2E8E1E #1E668E
square
#7E1E8E #8E461E #2E8E1E #1E668E
split-complementary
#7E1E8E #668E1E #1E8E46
monochromatic
#240929 #51135B #7E1E8E #AB29C1 #C54DD9

Accessibility & contrast

On white

8.52
#7E1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1E8E
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E8E#FFFFFF#000000##FFFFFF
##7E1E8E1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1e8e;
/* rgb */ color: rgb(126, 30, 142);
/* oklch */ color: oklch(44.2% 0.183 321.4);
Tailwind
colors: {
  custom: {
    50: '#a766b0',
    500: '#7e1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e8e;
$custom-light: #a766b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e8e",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 291.429,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44245,
    "c": 0.18342,
    "h": 321.4
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#7E1E8E
secondary
#5CBC4C
accent
#E84058
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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