#7E2587#7E2587

#7E2587 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.170 H 323.9°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7E2587
RGBrgb(126, 37, 135)
HSLhsl(294, 57%, 34%)
HSVhsv(294, 73%, 53%)
CMYKcmyk(6.7%, 72.6%, 0%, 47.1%)
CIE-LABlab(32.94, 50.82, -35.84)
CIE-LCHlch(32.94, 62.19, 324.81°)
OKLaboklab(44.4% 0.1371 -0.0999)
OKLCHoklch(44.4% 0.17 323.9)
XYZxyz(13.6385, 7.5089, 23.6480)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2587 #2E8725
analogous
#4D2587 #7E2587 #87255F
triadic
#7E2587 #877E25 #25877E
tetradic
#7E2587 #874D25 #2E8725 #255F87
square
#7E2587 #874D25 #2E8725 #255F87
split-complementary
#7E2587 #5F8725 #25874D
monochromatic
#240B27 #511857 #7E2587 #AB32B7 #C556D1

Accessibility & contrast

On white

8.39
#7E2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2587
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2587#FFFFFF#000000##FFFFFF
##7E25871.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#803653
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2587;
/* rgb */ color: rgb(126, 37, 135);
/* oklch */ color: oklch(44.4% 0.170 323.9);
Tailwind
colors: {
  custom: {
    50: '#a769aa',
    500: '#7e2587',
    950: '#000000',
  },
}
SCSS
$custom: #7e2587;
$custom-light: #a769aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2587",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 294.49,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.444,
    "c": 0.16963,
    "h": 323.9
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#7E2587
secondary
#5CB553
accent
#E04856
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2587

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

Preview Lab → · Contrast checker → · Palette generator →

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