#7E1788#7E1788

#7E1788 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.185 H 324.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7E1788
RGBrgb(126, 23, 136)
HSLhsl(295, 71%, 31%)
HSVhsv(295, 83%, 53%)
CMYKcmyk(7.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(31.41, 55.58, -38.91)
CIE-LCHlch(31.41, 67.85, 325.01°)
OKLaboklab(43.33% 0.1496 -0.1087)
OKLCHoklch(43.33% 0.185 324)
XYZxyz(13.3541, 6.8269, 23.9021)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1788 #218817
analogous
#451788 #7E1788 #881759
triadic
#7E1788 #887E17 #17887E
tetradic
#7E1788 #884517 #218817 #175988
square
#7E1788 #884517 #218817 #175988
split-complementary
#7E1788 #598817 #178845
monochromatic
#1D051F #4D0E54 #7E1788 #AE20BC #D03BDE

Accessibility & contrast

On white

8.88
#7E1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1788
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1788#FFFFFF#000000##FFFFFF
##7E17881.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#802F51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1788;
/* rgb */ color: rgb(126, 23, 136);
/* oklch */ color: oklch(43.3% 0.185 324.0);
Tailwind
colors: {
  custom: {
    50: '#a763ab',
    500: '#7e1788',
    950: '#000000',
  },
}
SCSS
$custom: #7e1788;
$custom-light: #a763ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1788",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 294.69,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43333,
    "c": 0.18492,
    "h": 324
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

primary
#7E1788
secondary
#4ABC3F
accent
#EE3A4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1788

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

Preview Lab → · Contrast checker → · Palette generator →

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