#7E2584#7E2584

#7E2584 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.167 H 325.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7E2584
RGBrgb(126, 37, 132)
HSLhsl(296, 56%, 33%)
HSVhsv(296, 72%, 52%)
CMYKcmyk(4.5%, 72%, 0%, 48.2%)
CIE-LABlab(32.76, 50.27, -34.27)
CIE-LCHlch(32.76, 60.84, 325.72°)
OKLaboklab(44.21% 0.1372 -0.0953)
OKLCHoklch(44.21% 0.167 325.2)
XYZxyz(13.4303, 7.4256, 22.5512)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2584 #2B8425
analogous
#4F2584 #7E2584 #84255A
triadic
#7E2584 #847E25 #25847E
tetradic
#7E2584 #844F25 #2B8425 #255A84
square
#7E2584 #844F25 #2B8425 #255A84
split-complementary
#7E2584 #5A8425 #25844F
monochromatic
#230A24 #501854 #7E2584 #AC32B4 #C754CF

Accessibility & contrast

On white

8.45
#7E2584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E2584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2584
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2584#FFFFFF#000000##FFFFFF
##7E25841.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4687
Deuteranopia (green-blind)
#385182
Tritanopia (blue-blind)
#813452
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2584;
/* rgb */ color: rgb(126, 37, 132);
/* oklch */ color: oklch(44.2% 0.167 325.2);
Tailwind
colors: {
  custom: {
    50: '#a668a8',
    500: '#7e2584',
    950: '#000000',
  },
}
SCSS
$custom: #7e2584;
$custom-light: #a668a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2584",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 132
  },
  "hsl": {
    "h": 296.211,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44211,
    "c": 0.16702,
    "h": 325.2
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#7E2584
secondary
#58B351
accent
#E04852
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2584

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

Preview Lab → · Contrast checker → · Palette generator →

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