#7E1C85#7E1C85

#7E1C85 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.178 H 325.1°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7E1C85
RGBrgb(126, 28, 133)
HSLhsl(296, 65%, 32%)
HSVhsv(296, 79%, 52%)
CMYKcmyk(5.3%, 78.9%, 0%, 47.8%)
CIE-LABlab(31.72, 53.60, -36.55)
CIE-LCHlch(31.72, 64.87, 325.71°)
OKLaboklab(43.49% 0.1459 -0.1018)
OKLCHoklch(43.49% 0.178 325.1)
XYZxyz(13.2528, 6.9605, 22.8312)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C85 #23851C
analogous
#4A1C85 #7E1C85 #851C58
triadic
#7E1C85 #857E1C #1C857E
tetradic
#7E1C85 #854A1C #23851C #1C5885
square
#7E1C85 #854A1C #23851C #1C5885
split-complementary
#7E1C85 #58851C #1C854A
monochromatic
#1E0720 #4E1152 #7E1C85 #AE27B8 #CE44D8

Accessibility & contrast

On white

8.78
#7E1C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1C85
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C85#FFFFFF#000000##FFFFFF
##7E1C851.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#334F83
Tritanopia (blue-blind)
#813050
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1c85;
/* rgb */ color: rgb(126, 28, 133);
/* oklch */ color: oklch(43.5% 0.178 325.1);
Tailwind
colors: {
  custom: {
    50: '#a765a9',
    500: '#7e1c85',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c85;
$custom-light: #a765a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c85",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 296,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43489,
    "c": 0.1779,
    "h": 325.1
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#7E1C85
secondary
#4CB845
accent
#E8404B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C85

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

Preview Lab → · Contrast checker → · Palette generator →

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