#7E2784#7E2784

#7E2784 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.165 H 325.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7E2784
RGBrgb(126, 39, 132)
HSLhsl(296, 54%, 34%)
HSVhsv(296, 70%, 52%)
CMYKcmyk(4.5%, 70.5%, 0%, 48.2%)
CIE-LABlab(33.03, 49.48, -33.83)
CIE-LCHlch(33.03, 59.94, 325.64°)
OKLaboklab(44.41% 0.135 -0.094)
OKLCHoklch(44.41% 0.165 325.2)
XYZxyz(13.4942, 7.5534, 22.5725)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2784 #2D8427
analogous
#4F2784 #7E2784 #84275B
triadic
#7E2784 #847E27 #27847E
tetradic
#7E2784 #844F27 #2D8427 #275B84
square
#7E2784 #844F27 #2D8427 #275B84
split-complementary
#7E2784 #5B8427 #27844F
monochromatic
#240B26 #511955 #7E2784 #AB35B3 #C658CE

Accessibility & contrast

On white

8.36
#7E2784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2784
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2784#FFFFFF#000000##FFFFFF
##7E27841.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124787
Deuteranopia (green-blind)
#395182
Tritanopia (blue-blind)
#813652
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2784;
/* rgb */ color: rgb(126, 39, 132);
/* oklch */ color: oklch(44.4% 0.165 325.2);
Tailwind
colors: {
  custom: {
    50: '#a669a8',
    500: '#7e2784',
    950: '#000000',
  },
}
SCSS
$custom: #7e2784;
$custom-light: #a669a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2784",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 296.129,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44411,
    "c": 0.1645,
    "h": 325.2
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#7E2784
secondary
#5AB254
accent
#DE4A54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2784

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

Preview Lab → · Contrast checker → · Palette generator →

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