#7E1C8C#7E1C8C

#7E1C8C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.184 H 322.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E1C8C
RGBrgb(126, 28, 140)
HSLhsl(293, 67%, 33%)
HSVhsv(293, 80%, 55%)
CMYKcmyk(10%, 80%, 0%, 45.1%)
CIE-LABlab(32.17, 54.87, -40.17)
CIE-LCHlch(32.17, 68.00, 323.79°)
OKLaboklab(43.95% 0.1453 -0.1124)
OKLCHoklch(43.95% 0.184 322.3)
XYZxyz(13.7526, 7.1604, 25.4636)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C8C #2A8C1C
analogous
#461C8C #7E1C8C #8C1C62
triadic
#7E1C8C #8C7E1C #1C8C7E
tetradic
#7E1C8C #8C461C #2A8C1C #1C628C
square
#7E1C8C #8C461C #2A8C1C #1C628C
split-complementary
#7E1C8C #628C1C #1C8C46
monochromatic
#220826 #501259 #7E1C8C #AC26BF #C848DA

Accessibility & contrast

On white

8.63
#7E1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C8C
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C8C#FFFFFF#000000##FFFFFF
##7E1C8C1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#2E4F89
Tritanopia (blue-blind)
#803354
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1c8c;
/* rgb */ color: rgb(126, 28, 140);
/* oklch */ color: oklch(44.0% 0.184 322.3);
Tailwind
colors: {
  custom: {
    50: '#a765ae',
    500: '#7e1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c8c;
$custom-light: #a765ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c8c",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 292.5,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43954,
    "c": 0.18369,
    "h": 322.3
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#7E1C8C
secondary
#56BC48
accent
#EA3E54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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