#7E2889#7E2889

#7E2889 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.168 H 323.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2889
RGBrgb(126, 40, 137)
HSLhsl(293, 55%, 35%)
HSVhsv(293, 71%, 54%)
CMYKcmyk(8%, 70.8%, 0%, 46.3%)
CIE-LABlab(33.48, 50.02, -36.22)
CIE-LCHlch(33.48, 61.76, 324.09°)
OKLaboklab(44.83% 0.1338 -0.101)
OKLCHoklch(44.83% 0.168 323)
XYZxyz(13.8779, 7.7601, 24.4289)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2889 #338928
analogous
#4E2889 #7E2889 #892864
triadic
#7E2889 #897E28 #28897E
tetradic
#7E2889 #894E28 #338928 #286489
square
#7E2889 #894E28 #338928 #286489
split-complementary
#7E2889 #648928 #28894E
monochromatic
#270C2A #521A5A #7E2889 #AA36B8 #C25CCF

Accessibility & contrast

On white

8.23
#7E2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2889
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2889#FFFFFF#000000##FFFFFF
##7E28891.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09488C
Deuteranopia (green-blind)
#375287
Tritanopia (blue-blind)
#803955
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2889;
/* rgb */ color: rgb(126, 40, 137);
/* oklch */ color: oklch(44.8% 0.168 323.0);
Tailwind
colors: {
  custom: {
    50: '#a66aac',
    500: '#7e2889',
    950: '#000000',
  },
}
SCSS
$custom: #7e2889;
$custom-light: #a66aac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2889",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 293.196,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44826,
    "c": 0.16766,
    "h": 323
  },
  "luminance": 0.07759
}

Semantic roles & 50–950 ramp

primary
#7E2889
secondary
#63B558
accent
#DE4A5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2889

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

Preview Lab → · Contrast checker → · Palette generator →

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