#7E1C86#7E1C86

#7E1C86 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.179 H 324.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7E1C86
RGBrgb(126, 28, 134)
HSLhsl(295, 65%, 32%)
HSVhsv(295, 79%, 53%)
CMYKcmyk(6%, 79.1%, 0%, 47.5%)
CIE-LABlab(31.78, 53.78, -37.07)
CIE-LCHlch(31.78, 65.32, 325.42°)
OKLaboklab(43.55% 0.1458 -0.1034)
OKLCHoklch(43.55% 0.179 324.7)
XYZxyz(13.3222, 6.9882, 23.1968)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C86 #24861C
analogous
#491C86 #7E1C86 #861C59
triadic
#7E1C86 #867E1C #1C867E
tetradic
#7E1C86 #86491C #24861C #1C5986
square
#7E1C86 #86491C #24861C #1C5986
split-complementary
#7E1C86 #59861C #1C8649
monochromatic
#1F0721 #4E1153 #7E1C86 #AE27B9 #CD44D8

Accessibility & contrast

On white

8.76
#7E1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E1C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C86
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C86#FFFFFF#000000##FFFFFF
##7E1C861.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#324F84
Tritanopia (blue-blind)
#813051
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1c86;
/* rgb */ color: rgb(126, 28, 134);
/* oklch */ color: oklch(43.6% 0.179 324.7);
Tailwind
colors: {
  custom: {
    50: '#a765aa',
    500: '#7e1c86',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c86;
$custom-light: #a765aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c86",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 295.472,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43554,
    "c": 0.17872,
    "h": 324.7
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#7E1C86
secondary
#4EB945
accent
#E83F4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C86

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

Preview Lab → · Contrast checker → · Palette generator →

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