#7E1477#7E1477

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

Color values

HEX#7E1477
RGBrgb(126, 20, 119)
HSLhsl(304, 73%, 29%)
HSVhsv(304, 84%, 49%)
CMYKcmyk(0%, 84.1%, 5.6%, 50.6%)
CIE-LABlab(30.08, 53.48, -30.35)
CIE-LCHlch(30.08, 61.50, 330.43°)
OKLaboklab(42.05% 0.1528 -0.0838)
OKLCHoklch(42.05% 0.174 331.3)
XYZxyz(12.1841, 6.2689, 18.0175)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1477 #147E1B
analogous
#50147E #7E1477 #7E1442
triadic
#7E1477 #777E14 #14777E
tetradic
#7E1477 #7E5014 #147E1B #14427E
square
#7E1477 #7E5014 #147E1B #14427E
split-complementary
#7E1477 #427E14 #147E50
monochromatic
#1A0419 #490C45 #7E1477 #B31CA9 #DE2ED2

Accessibility & contrast

On white

9.32
#7E1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1477
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1477#FFFFFF#000000##FFFFFF
##7E14771.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7A
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#832446
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1477;
/* rgb */ color: rgb(126, 20, 119);
/* oklch */ color: oklch(42.1% 0.174 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7619e',
    500: '#7e1477',
    950: '#000000',
  },
}
SCSS
$custom: #7e1477;
$custom-light: #a7619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1477",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 303.962,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.17426,
    "h": 331.3
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

primary
#7E1477
secondary
#3AB342
accent
#EF4538
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1477

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

Preview Lab → · Contrast checker → · Palette generator →

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