#7E1C81#7E1C81

#7E1C81 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.175 H 326.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E1C81
RGBrgb(126, 28, 129)
HSLhsl(298, 64%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(2.3%, 78.3%, 0%, 49.4%)
CIE-LABlab(31.47, 52.89, -34.45)
CIE-LCHlch(31.47, 63.12, 326.92°)
OKLaboklab(43.23% 0.1461 -0.0957)
OKLCHoklch(43.23% 0.175 326.8)
XYZxyz(12.9817, 6.8520, 21.4034)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C81 #1F811C
analogous
#4B1C81 #7E1C81 #811C51
triadic
#7E1C81 #817E1C #1C817E
tetradic
#7E1C81 #814B1C #1F811C #1C5181
square
#7E1C81 #814B1C #1F811C #1C5181
split-complementary
#7E1C81 #51811C #1C814B
monochromatic
#1C061C #4D114F #7E1C81 #AF27B3 #D142D6

Accessibility & contrast

On white

8.86
#7E1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C81
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C81#FFFFFF#000000##FFFFFF
##7E1C811.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#822E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1c81;
/* rgb */ color: rgb(126, 28, 129);
/* oklch */ color: oklch(43.2% 0.175 326.8);
Tailwind
colors: {
  custom: {
    50: '#a765a6',
    500: '#7e1c81',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c81;
$custom-light: #a765a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c81",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 298.218,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43232,
    "c": 0.17464,
    "h": 326.8
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#7E1C81
secondary
#48B444
accent
#E74045
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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