#7E1789#7E1789

#7E1789 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.186 H 323.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7E1789
RGBrgb(126, 23, 137)
HSLhsl(294, 71%, 31%)
HSVhsv(294, 83%, 54%)
CMYKcmyk(8%, 83.2%, 0%, 46.3%)
CIE-LABlab(31.48, 55.76, -39.42)
CIE-LCHlch(31.48, 68.29, 324.74°)
OKLaboklab(43.4% 0.1495 -0.1102)
OKLCHoklch(43.4% 0.186 323.6)
XYZxyz(13.4255, 6.8554, 24.2781)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1789 #228917
analogous
#451789 #7E1789 #89175B
triadic
#7E1789 #897E17 #17897E
tetradic
#7E1789 #894517 #228917 #175B89
square
#7E1789 #894517 #228917 #175B89
split-complementary
#7E1789 #5B8917 #178945
monochromatic
#1E0520 #4E0E55 #7E1789 #AE20BD #CF3CDE

Accessibility & contrast

On white

8.86
#7E1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1789
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1789#FFFFFF#000000##FFFFFF
##7E17891.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#802F51
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1789;
/* rgb */ color: rgb(126, 23, 137);
/* oklch */ color: oklch(43.4% 0.186 323.6);
Tailwind
colors: {
  custom: {
    50: '#a763ac',
    500: '#7e1789',
    950: '#000000',
  },
}
SCSS
$custom: #7e1789;
$custom-light: #a763ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1789",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 294.211,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.18572,
    "h": 323.6
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#7E1789
secondary
#4BBD3F
accent
#EE3A4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1789

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

Preview Lab → · Contrast checker → · Palette generator →

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