#7E2581#7E2581

#7E2581 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.164 H 326.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7E2581
RGBrgb(126, 37, 129)
HSLhsl(298, 55%, 33%)
HSVhsv(298, 71%, 51%)
CMYKcmyk(2.3%, 71.3%, 0%, 49.4%)
CIE-LABlab(32.58, 49.72, -32.68)
CIE-LCHlch(32.58, 59.50, 326.68°)
OKLaboklab(44.03% 0.1372 -0.0906)
OKLCHoklch(44.03% 0.164 326.5)
XYZxyz(13.2280, 7.3446, 21.4855)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2581 #288125
analogous
#502581 #7E2581 #812556
triadic
#7E2581 #817E25 #25817E
tetradic
#7E2581 #815025 #288125 #255681
square
#7E2581 #815025 #288125 #255681
split-complementary
#7E2581 #568125 #258150
monochromatic
#210A22 #501751 #7E2581 #AC33B1 #CA53CE

Accessibility & contrast

On white

8.51
#7E2581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E2581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2581
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2581#FFFFFF#000000##FFFFFF
##7E25811.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124584
Deuteranopia (green-blind)
#3A517F
Tritanopia (blue-blind)
#813350
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2581;
/* rgb */ color: rgb(126, 37, 129);
/* oklch */ color: oklch(44.0% 0.164 326.5);
Tailwind
colors: {
  custom: {
    50: '#a668a6',
    500: '#7e2581',
    950: '#000000',
  },
}
SCSS
$custom: #7e2581;
$custom-light: #a668a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2581",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 298.043,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44026,
    "c": 0.16443,
    "h": 326.5
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#7E2581
secondary
#53B250
accent
#DF494E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2581

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

Preview Lab → · Contrast checker → · Palette generator →

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