#7E147B#7E147B

#7E147B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.177 H 329.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7E147B
RGBrgb(126, 20, 123)
HSLhsl(302, 73%, 29%)
HSVhsv(302, 84%, 49%)
CMYKcmyk(0%, 84.1%, 2.4%, 50.6%)
CIE-LABlab(30.32, 54.13, -32.50)
CIE-LCHlch(30.32, 63.14, 329.02°)
OKLaboklab(42.3% 0.1527 -0.09)
OKLCHoklch(42.3% 0.177 329.5)
XYZxyz(12.4294, 6.3670, 19.3094)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E147B #147E17
analogous
#4C147E #7E147B #7E1446
triadic
#7E147B #7B7E14 #147B7E
tetradic
#7E147B #7E4C14 #147E17 #14467E
square
#7E147B #7E4C14 #147E17 #14467E
split-complementary
#7E147B #467E14 #147E4C
monochromatic
#1A041A #490C47 #7E147B #B31CAF #DE2ED9

Accessibility & contrast

On white

9.24
#7E147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E147B
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E147B#FFFFFF#000000##FFFFFF
##7E147B1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#832649
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e147b;
/* rgb */ color: rgb(126, 20, 123);
/* oklch */ color: oklch(42.3% 0.177 329.5);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e147b',
    950: '#000000',
  },
}
SCSS
$custom: #7e147b;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e147b",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 301.698,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.17725,
    "h": 329.5
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#7E147B
secondary
#3AB33E
accent
#EF3E38
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E147B

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

Preview Lab → · Contrast checker → · Palette generator →

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