#7E1C84#7E1C84

#7E1C84 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.177 H 325.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7E1C84
RGBrgb(126, 28, 132)
HSLhsl(297, 65%, 31%)
HSVhsv(297, 79%, 52%)
CMYKcmyk(4.5%, 78.8%, 0%, 48.2%)
CIE-LABlab(31.65, 53.42, -36.03)
CIE-LCHlch(31.65, 64.43, 326.00°)
OKLaboklab(43.42% 0.1459 -0.1003)
OKLCHoklch(43.42% 0.177 325.5)
XYZxyz(13.1840, 6.9330, 22.4691)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C84 #22841C
analogous
#4A1C84 #7E1C84 #841C56
triadic
#7E1C84 #847E1C #1C847E
tetradic
#7E1C84 #844A1C #22841C #1C5684
square
#7E1C84 #844A1C #22841C #1C5684
split-complementary
#7E1C84 #56841C #1C844A
monochromatic
#1E071F #4E1152 #7E1C84 #AE27B6 #CF43D7

Accessibility & contrast

On white

8.80
#7E1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C84
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C84#FFFFFF#000000##FFFFFF
##7E1C841.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#344F82
Tritanopia (blue-blind)
#812F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1c84;
/* rgb */ color: rgb(126, 28, 132);
/* oklch */ color: oklch(43.4% 0.177 325.5);
Tailwind
colors: {
  custom: {
    50: '#a765a8',
    500: '#7e1c84',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c84;
$custom-light: #a765a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c84",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 296.538,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43424,
    "c": 0.17708,
    "h": 325.5
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#7E1C84
secondary
#4BB745
accent
#E8404A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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