#7E1577#7E1577

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

Color values

HEX#7E1577
RGBrgb(126, 21, 119)
HSLhsl(304, 71%, 29%)
HSVhsv(304, 83%, 49%)
CMYKcmyk(0%, 83.3%, 5.6%, 50.6%)
CIE-LABlab(30.17, 53.23, -30.21)
CIE-LCHlch(30.17, 61.20, 330.42°)
OKLaboklab(42.11% 0.1521 -0.0834)
OKLCHoklch(42.11% 0.173 331.3)
XYZxyz(12.2021, 6.3049, 18.0235)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1577 #157E1C
analogous
#51157E #7E1577 #7E1543
triadic
#7E1577 #777E15 #15777E
tetradic
#7E1577 #7E5115 #157E1C #15437E
square
#7E1577 #7E5115 #157E1C #15437E
split-complementary
#7E1577 #437E15 #157E51
monochromatic
#1A0419 #4A0C45 #7E1577 #B21EA9 #DD31D1

Accessibility & contrast

On white

9.29
#7E1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1577
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1577#FFFFFF#000000##FFFFFF
##7E15771.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E79
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#832447
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1577;
/* rgb */ color: rgb(126, 21, 119);
/* oklch */ color: oklch(42.1% 0.173 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7629e',
    500: '#7e1577',
    950: '#000000',
  },
}
SCSS
$custom: #7e1577;
$custom-light: #a7629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1577",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 304,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42114,
    "c": 0.17342,
    "h": 331.3
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#7E1577
secondary
#3CB344
accent
#EE463A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1577

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

Preview Lab → · Contrast checker → · Palette generator →

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