#7E1777#7E1777

#7E1777 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.172 H 331.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7E1777
RGBrgb(126, 23, 119)
HSLhsl(304, 69%, 29%)
HSVhsv(304, 82%, 49%)
CMYKcmyk(0%, 81.7%, 5.6%, 50.6%)
CIE-LABlab(30.35, 52.69, -29.92)
CIE-LCHlch(30.35, 60.59, 330.41°)
OKLaboklab(42.25% 0.1505 -0.0825)
OKLCHoklch(42.25% 0.172 331.3)
XYZxyz(12.2404, 6.3813, 18.0362)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1777 #177E1E
analogous
#52177E #7E1777 #7E1744
triadic
#7E1777 #777E17 #17777E
tetradic
#7E1777 #7E5217 #177E1E #17447E
square
#7E1777 #7E5217 #177E1E #17447E
split-complementary
#7E1777 #447E17 #177E52
monochromatic
#1A0518 #4A0E46 #7E1777 #B220A8 #DA35CF

Accessibility & contrast

On white

9.23
#7E1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1777
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1777#FFFFFF#000000##FFFFFF
##7E17771.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E79
Deuteranopia (green-blind)
#3A4C75
Tritanopia (blue-blind)
#832547
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1777;
/* rgb */ color: rgb(126, 23, 119);
/* oklch */ color: oklch(42.2% 0.172 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7629e',
    500: '#7e1777',
    950: '#000000',
  },
}
SCSS
$custom: #7e1777;
$custom-light: #a7629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1777",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 304.078,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42246,
    "c": 0.17164,
    "h": 331.3
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#7E1777
secondary
#3EB346
accent
#EC483C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1777

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

Preview Lab → · Contrast checker → · Palette generator →

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