#7E2789#7E2789

#7E2789 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.169 H 323.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E2789
RGBrgb(126, 39, 137)
HSLhsl(293, 56%, 35%)
HSVhsv(293, 72%, 54%)
CMYKcmyk(8%, 71.5%, 0%, 46.3%)
CIE-LABlab(33.34, 50.42, -36.45)
CIE-LCHlch(33.34, 62.21, 324.14°)
OKLaboklab(44.72% 0.1349 -0.1016)
OKLCHoklch(44.72% 0.169 323)
XYZxyz(13.8446, 7.6936, 24.4178)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2789 #328927
analogous
#4D2789 #7E2789 #892763
triadic
#7E2789 #897E27 #27897E
tetradic
#7E2789 #894D27 #328927 #276389
square
#7E2789 #894D27 #328927 #276389
split-complementary
#7E2789 #638927 #27894D
monochromatic
#260C2A #521959 #7E2789 #AA35B9 #C35AD0

Accessibility & contrast

On white

8.27
#7E2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2789
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2789#FFFFFF#000000##FFFFFF
##7E27891.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488C
Deuteranopia (green-blind)
#365287
Tritanopia (blue-blind)
#803855
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2789;
/* rgb */ color: rgb(126, 39, 137);
/* oklch */ color: oklch(44.7% 0.169 323.0);
Tailwind
colors: {
  custom: {
    50: '#a76aac',
    500: '#7e2789',
    950: '#000000',
  },
}
SCSS
$custom: #7e2789;
$custom-light: #a76aac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2789",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 293.265,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44724,
    "c": 0.16892,
    "h": 323
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#7E2789
secondary
#61B557
accent
#DF495A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2789

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

Preview Lab → · Contrast checker → · Palette generator →

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