#7E2487#7E2487

#7E2487 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.171 H 324.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7E2487
RGBrgb(126, 36, 135)
HSLhsl(295, 58%, 34%)
HSVhsv(295, 73%, 53%)
CMYKcmyk(6.7%, 73.3%, 0%, 47.1%)
CIE-LABlab(32.80, 51.20, -36.06)
CIE-LCHlch(32.80, 62.63, 324.85°)
OKLaboklab(44.3% 0.1382 -0.1005)
OKLCHoklch(44.3% 0.171 324)
XYZxyz(13.6079, 7.4475, 23.6377)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2487 #2D8724
analogous
#4C2487 #7E2487 #87245E
triadic
#7E2487 #877E24 #24877E
tetradic
#7E2487 #874C24 #2D8724 #245E87
square
#7E2487 #874C24 #2D8724 #245E87
split-complementary
#7E2487 #5E8724 #24874C
monochromatic
#240A26 #511757 #7E2487 #AB31B7 #C654D1

Accessibility & contrast

On white

8.44
#7E2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2487
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2487#FFFFFF#000000##FFFFFF
##7E24871.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2487;
/* rgb */ color: rgb(126, 36, 135);
/* oklch */ color: oklch(44.3% 0.171 324.0);
Tailwind
colors: {
  custom: {
    50: '#a768aa',
    500: '#7e2487',
    950: '#000000',
  },
}
SCSS
$custom: #7e2487;
$custom-light: #a768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2487",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 294.545,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.17083,
    "h": 324
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#7E2487
secondary
#5AB551
accent
#E14755
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2487

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

Preview Lab → · Contrast checker → · Palette generator →

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