#7E2684#7E2684

#7E2684 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.166 H 325.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7E2684
RGBrgb(126, 38, 132)
HSLhsl(296, 55%, 33%)
HSVhsv(296, 71%, 52%)
CMYKcmyk(4.5%, 71.2%, 0%, 48.2%)
CIE-LABlab(32.89, 49.88, -34.05)
CIE-LCHlch(32.89, 60.39, 325.68°)
OKLaboklab(44.31% 0.1361 -0.0946)
OKLCHoklch(44.31% 0.166 325.2)
XYZxyz(13.4618, 7.4886, 22.5617)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2684 #2C8426
analogous
#4F2684 #7E2684 #84265B
triadic
#7E2684 #847E26 #26847E
tetradic
#7E2684 #844F26 #2C8426 #265B84
square
#7E2684 #844F26 #2C8426 #265B84
split-complementary
#7E2684 #5B8426 #26844F
monochromatic
#230B25 #511854 #7E2684 #AB34B4 #C756CE

Accessibility & contrast

On white

8.41
#7E2684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E2684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2684
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2684#FFFFFF#000000##FFFFFF
##7E26841.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4687
Deuteranopia (green-blind)
#395182
Tritanopia (blue-blind)
#813552
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2684;
/* rgb */ color: rgb(126, 38, 132);
/* oklch */ color: oklch(44.3% 0.166 325.2);
Tailwind
colors: {
  custom: {
    50: '#a669a8',
    500: '#7e2684',
    950: '#000000',
  },
}
SCSS
$custom: #7e2684;
$custom-light: #a669a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2684",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 296.17,
    "s": 55.294,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4431,
    "c": 0.16577,
    "h": 325.2
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#7E2684
secondary
#59B353
accent
#DF4953
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2684

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

Preview Lab → · Contrast checker → · Palette generator →

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