#7E1C8F#7E1C8F

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

Color values

HEX#7E1C8F
RGBrgb(126, 28, 143)
HSLhsl(291, 67%, 34%)
HSVhsv(291, 80%, 56%)
CMYKcmyk(11.9%, 80.4%, 0%, 43.9%)
CIE-LABlab(32.37, 55.42, -41.70)
CIE-LCHlch(32.37, 69.36, 323.04°)
OKLaboklab(44.16% 0.1449 -0.1169)
OKLCHoklch(44.16% 0.186 321.1)
XYZxyz(13.9768, 7.2501, 26.6445)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C8F #2D8F1C
analogous
#441C8F #7E1C8F #8F1C66
triadic
#7E1C8F #8F7E1C #1C8F7E
tetradic
#7E1C8F #8F441C #2D8F1C #1C668F
square
#7E1C8F #8F441C #2D8F1C #1C668F
split-complementary
#7E1C8F #668F1C #1C8F44
monochromatic
#240829 #51125C #7E1C8F #AB26C2 #C64ADC

Accessibility & contrast

On white

8.57
#7E1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1C8F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C8F#FFFFFF#000000##FFFFFF
##7E1C8F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1c8f;
/* rgb */ color: rgb(126, 28, 143);
/* oklch */ color: oklch(44.2% 0.186 321.1);
Tailwind
colors: {
  custom: {
    50: '#a765b0',
    500: '#7e1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c8f;
$custom-light: #a765b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c8f",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 291.13,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4416,
    "c": 0.1862,
    "h": 321.1
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#7E1C8F
secondary
#5ABE49
accent
#EA3E57
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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