#7E147A#7E147A

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

Color values

HEX#7E147A
RGBrgb(126, 20, 122)
HSLhsl(302, 73%, 29%)
HSVhsv(302, 84%, 49%)
CMYKcmyk(0%, 84.1%, 3.2%, 50.6%)
CIE-LABlab(30.26, 53.97, -31.97)
CIE-LCHlch(30.26, 62.73, 329.36°)
OKLaboklab(42.24% 0.1527 -0.0885)
OKLCHoklch(42.24% 0.177 329.9)
XYZxyz(12.3671, 6.3421, 18.9814)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E147A #147E18
analogous
#4D147E #7E147A #7E1445
triadic
#7E147A #7A7E14 #147A7E
tetradic
#7E147A #7E4D14 #147E18 #14457E
square
#7E147A #7E4D14 #147E18 #14457E
split-complementary
#7E147A #457E14 #147E4D
monochromatic
#1A041A #490C47 #7E147A #B31CAD #DE2ED7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E147A#FFFFFF#000000##FFFFFF
##7E147A1.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)
#003E7D
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#832548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e147a;
/* rgb */ color: rgb(126, 20, 122);
/* oklch */ color: oklch(42.2% 0.177 329.9);
Tailwind
colors: {
  custom: {
    50: '#a761a1',
    500: '#7e147a',
    950: '#000000',
  },
}
SCSS
$custom: #7e147a;
$custom-light: #a761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e147a",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 302.264,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42236,
    "c": 0.17651,
    "h": 329.9
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#7E147A
secondary
#3AB33F
accent
#EF3F38
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E147A

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

Preview Lab → · Contrast checker → · Palette generator →

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