#7E1A70#7E1A70

#7E1A70 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.163 H 334.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7E1A70
RGBrgb(126, 26, 112)
HSLhsl(308, 66%, 30%)
HSVhsv(308, 79%, 49%)
CMYKcmyk(0%, 79.4%, 11.1%, 50.6%)
CIE-LABlab(30.27, 50.69, -25.60)
CIE-LCHlch(30.27, 56.79, 333.21°)
OKLaboklab(42.06% 0.1477 -0.0701)
OKLCHoklch(42.06% 0.163 334.6)
XYZxyz(11.8983, 6.3453, 15.9242)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A70 #1A7E28
analogous
#5A1A7E #7E1A70 #7E1A3E
triadic
#7E1A70 #707E1A #1A707E
tetradic
#7E1A70 #7E5A1A #1A7E28 #1A3E7E
square
#7E1A70 #7E5A1A #1A7E28 #1A3E7E
split-complementary
#7E1A70 #3E7E1A #1A7E5A
monochromatic
#190517 #4B1043 #7E1A70 #B1249D #D73CC1

Accessibility & contrast

On white

9.26
#7E1A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A70
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A70#FFFFFF#000000##FFFFFF
##7E1A701.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193E72
Deuteranopia (green-blind)
#3E4C6E
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1a70;
/* rgb */ color: rgb(126, 26, 112);
/* oklch */ color: oklch(42.1% 0.163 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76399',
    500: '#7e1a70',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a70;
$custom-light: #a76399;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a70",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 308.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.16348,
    "h": 334.6
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#7E1A70
secondary
#42B251
accent
#E9573F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1A70

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

Preview Lab → · Contrast checker → · Palette generator →

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