#7E1A6E#7E1A6E

#7E1A6E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.162 H 335.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7E1A6E
RGBrgb(126, 26, 110)
HSLhsl(310, 66%, 30%)
HSVhsv(310, 79%, 49%)
CMYKcmyk(0%, 79.4%, 12.7%, 50.6%)
CIE-LABlab(30.16, 50.38, -24.49)
CIE-LCHlch(30.16, 56.02, 334.07°)
OKLaboklab(41.95% 0.1475 -0.0669)
OKLCHoklch(41.95% 0.162 335.6)
XYZxyz(11.7882, 6.3013, 15.3443)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A6E #1A7E2A
analogous
#5C1A7E #7E1A6E #7E1A3C
triadic
#7E1A6E #6E7E1A #1A6E7E
tetradic
#7E1A6E #7E5C1A #1A7E2A #1A3C7E
square
#7E1A6E #7E5C1A #1A7E2A #1A3C7E
split-complementary
#7E1A6E #3C7E1A #1A7E5C
monochromatic
#190516 #4B1042 #7E1A6E #B1249A #D73CBE

Accessibility & contrast

On white

9.29
#7E1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A6E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A6E#FFFFFF#000000##FFFFFF
##7E1A6E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3E70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#852243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1a6e;
/* rgb */ color: rgb(126, 26, 110);
/* oklch */ color: oklch(41.9% 0.162 335.6);
Tailwind
colors: {
  custom: {
    50: '#a76398',
    500: '#7e1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a6e;
$custom-light: #a76398;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a6e",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 309.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41945,
    "c": 0.16201,
    "h": 335.6
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#7E1A6E
secondary
#42B254
accent
#E95A3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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