#7E1A77#7E1A77

#7E1A77 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.169 H 331.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7E1A77
RGBrgb(126, 26, 119)
HSLhsl(304, 66%, 30%)
HSVhsv(304, 79%, 49%)
CMYKcmyk(0%, 79.4%, 5.6%, 50.6%)
CIE-LABlab(30.66, 51.82, -29.44)
CIE-LCHlch(30.66, 59.60, 330.40°)
OKLaboklab(42.46% 0.148 -0.0812)
OKLCHoklch(42.46% 0.169 331.3)
XYZxyz(12.3034, 6.5073, 18.0572)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A77 #1A7E21
analogous
#531A7E #7E1A77 #7E1A45
triadic
#7E1A77 #777E1A #1A777E
tetradic
#7E1A77 #7E531A #1A7E21 #1A457E
square
#7E1A77 #7E531A #1A7E21 #1A457E
split-complementary
#7E1A77 #457E1A #1A7E53
monochromatic
#190518 #4B1047 #7E1A77 #B124A7 #D73CCC

Accessibility & contrast

On white

9.13
#7E1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A77
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A77#FFFFFF#000000##FFFFFF
##7E1A771.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3F79
Deuteranopia (green-blind)
#3B4D75
Tritanopia (blue-blind)
#832748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1a77;
/* rgb */ color: rgb(126, 26, 119);
/* oklch */ color: oklch(42.5% 0.169 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1a77',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a77;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a77",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 304.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.16877,
    "h": 331.3
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#7E1A77
secondary
#42B24A
accent
#E94B3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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