#7E2884#7E2884

#7E2884 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.163 H 325.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E2884
RGBrgb(126, 40, 132)
HSLhsl(296, 53%, 34%)
HSVhsv(296, 70%, 52%)
CMYKcmyk(4.5%, 69.7%, 0%, 48.2%)
CIE-LABlab(33.18, 49.08, -33.60)
CIE-LCHlch(33.18, 59.48, 325.61°)
OKLaboklab(44.51% 0.1339 -0.0933)
OKLCHoklch(44.51% 0.163 325.1)
XYZxyz(13.5275, 7.6200, 22.5836)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2884 #2E8428
analogous
#502884 #7E2884 #84285C
triadic
#7E2884 #847E28 #28847E
tetradic
#7E2884 #845028 #2E8428 #285C84
square
#7E2884 #845028 #2E8428 #285C84
split-complementary
#7E2884 #5C8428 #288450
monochromatic
#240C26 #511A55 #7E2884 #AB36B3 #C55ACD

Accessibility & contrast

On white

8.32
#7E2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2884
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2884#FFFFFF#000000##FFFFFF
##7E28841.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144787
Deuteranopia (green-blind)
#3A5282
Tritanopia (blue-blind)
#813653
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2884;
/* rgb */ color: rgb(126, 40, 132);
/* oklch */ color: oklch(44.5% 0.163 325.1);
Tailwind
colors: {
  custom: {
    50: '#a66aa8',
    500: '#7e2884',
    950: '#000000',
  },
}
SCSS
$custom: #7e2884;
$custom-light: #a66aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2884",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 296.087,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44514,
    "c": 0.16321,
    "h": 325.1
  },
  "luminance": 0.07619
}

Semantic roles & 50–950 ramp

primary
#7E2884
secondary
#5CB256
accent
#DD4B54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2884

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

Preview Lab → · Contrast checker → · Palette generator →

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