#7E1A76#7E1A76

#7E1A76 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.168 H 331.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7E1A76
RGBrgb(126, 26, 118)
HSLhsl(305, 66%, 30%)
HSVhsv(305, 79%, 49%)
CMYKcmyk(0%, 79.4%, 6.3%, 50.6%)
CIE-LABlab(30.60, 51.65, -28.89)
CIE-LCHlch(30.60, 59.19, 330.78°)
OKLaboklab(42.4% 0.148 -0.0796)
OKLCHoklch(42.4% 0.168 331.7)
XYZxyz(12.2436, 6.4834, 17.7426)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A76 #1A7E22
analogous
#541A7E #7E1A76 #7E1A44
triadic
#7E1A76 #767E1A #1A767E
tetradic
#7E1A76 #7E541A #1A7E22 #1A447E
square
#7E1A76 #7E541A #1A7E22 #1A447E
split-complementary
#7E1A76 #447E1A #1A7E54
monochromatic
#190518 #4B1046 #7E1A76 #B124A6 #D73CCA

Accessibility & contrast

On white

9.14
#7E1A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A76
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A76#FFFFFF#000000##FFFFFF
##7E1A761.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113F78
Deuteranopia (green-blind)
#3B4D74
Tritanopia (blue-blind)
#832747
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1a76;
/* rgb */ color: rgb(126, 26, 118);
/* oklch */ color: oklch(42.4% 0.168 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1a76',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a76;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a76",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 304.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.168,
    "h": 331.7
  },
  "luminance": 0.06482
}

Semantic roles & 50–950 ramp

primary
#7E1A76
secondary
#42B24B
accent
#E94D3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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