#7E1A7F#7E1A7F

#7E1A7F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.175 H 327.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7E1A7F
RGBrgb(126, 26, 127)
HSLhsl(299, 66%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(0.8%, 79.5%, 0%, 50.2%)
CIE-LABlab(31.13, 53.16, -33.73)
CIE-LCHlch(31.13, 62.96, 327.61°)
OKLaboklab(42.95% 0.1479 -0.0936)
OKLCHoklch(42.95% 0.175 327.7)
XYZxyz(12.8042, 6.7077, 20.6949)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A7F #1B7F1A
analogous
#4C1A7F #7E1A7F #7F1A4D
triadic
#7E1A7F #7F7E1A #1A7F7E
tetradic
#7E1A7F #7F4C1A #1B7F1A #1A4D7F
square
#7E1A7F #7F4C1A #1B7F1A #1A4D7F
split-complementary
#7E1A7F #4D7F1A #1A7F4C
monochromatic
#190519 #4C104C #7E1A7F #B024B2 #D63CD7

Accessibility & contrast

On white

8.97
#7E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A7F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A7F#FFFFFF#000000##FFFFFF
##7E1A7F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#822B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1a7f;
/* rgb */ color: rgb(126, 26, 127);
/* oklch */ color: oklch(43.0% 0.175 327.7);
Tailwind
colors: {
  custom: {
    50: '#a764a4',
    500: '#7e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a7f;
$custom-light: #a764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a7f",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 299.406,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42953,
    "c": 0.17502,
    "h": 327.7
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#7E1A7F
secondary
#43B342
accent
#E93F41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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