#7E1E8D#7E1E8D

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

Color values

HEX#7E1E8D
RGBrgb(126, 30, 141)
HSLhsl(292, 65%, 34%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(10.6%, 78.7%, 0%, 44.7%)
CIE-LABlab(32.45, 54.42, -40.33)
CIE-LCHlch(32.45, 67.74, 323.46°)
OKLaboklab(44.18% 0.1435 -0.1129)
OKLCHoklch(44.18% 0.183 321.8)
XYZxyz(13.8757, 7.2880, 25.8700)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E8D #2D8D1E
analogous
#461E8D #7E1E8D #8D1E64
triadic
#7E1E8D #8D7E1E #1E8D7E
tetradic
#7E1E8D #8D461E #2D8D1E #1E648D
square
#7E1E8D #8D461E #2D8D1E #1E648D
split-complementary
#7E1E8D #648D1E #1E8D46
monochromatic
#240928 #51135B #7E1E8D #AB29BF #C64CD9

Accessibility & contrast

On white

8.55
#7E1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1E8D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E8D#FFFFFF#000000##FFFFFF
##7E1E8D1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1e8d;
/* rgb */ color: rgb(126, 30, 141);
/* oklch */ color: oklch(44.2% 0.183 321.8);
Tailwind
colors: {
  custom: {
    50: '#a766af',
    500: '#7e1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e8d;
$custom-light: #a766af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e8d",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 291.892,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44177,
    "c": 0.18257,
    "h": 321.8
  },
  "luminance": 0.07287
}

Semantic roles & 50–950 ramp

primary
#7E1E8D
secondary
#5ABC4B
accent
#E84057
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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