#7E2891#7E2891

#7E2891 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.175 H 319.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7E2891
RGBrgb(126, 40, 145)
HSLhsl(289, 57%, 36%)
HSVhsv(289, 72%, 57%)
CMYKcmyk(13.1%, 72.4%, 0%, 43.1%)
CIE-LABlab(33.98, 51.57, -40.35)
CIE-LCHlch(33.98, 65.48, 321.96°)
OKLaboklab(45.35% 0.1335 -0.113)
OKLCHoklch(45.35% 0.175 319.7)
XYZxyz(14.4732, 7.9982, 27.5640)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2891 #3B9128
analogous
#4A2891 #7E2891 #912870
triadic
#7E2891 #917E28 #28917E
tetradic
#7E2891 #914A28 #3B9128 #287091
square
#7E2891 #914A28 #3B9128 #287091
split-complementary
#7E2891 #709128 #28914A
monochromatic
#2B0E31 #541B61 #7E2891 #A835C1 #BE60D3

Accessibility & contrast

On white

8.08
#7E2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7E2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2891
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2891#FFFFFF#000000##FFFFFF
##7E28911.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#31538F
Tritanopia (blue-blind)
#7E3C5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2891;
/* rgb */ color: rgb(126, 40, 145);
/* oklch */ color: oklch(45.3% 0.175 319.7);
Tailwind
colors: {
  custom: {
    50: '#a76ab2',
    500: '#7e2891',
    950: '#000000',
  },
}
SCSS
$custom: #7e2891;
$custom-light: #a76ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2891",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 289.143,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45345,
    "c": 0.17491,
    "h": 319.7
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

primary
#7E2891
secondary
#6DB95C
accent
#E04863
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2891

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

Preview Lab → · Contrast checker → · Palette generator →

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