#7E2582#7E2582

#7E2582 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.165 H 326.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7E2582
RGBrgb(126, 37, 130)
HSLhsl(297, 56%, 33%)
HSVhsv(297, 72%, 51%)
CMYKcmyk(3.1%, 71.5%, 0%, 49%)
CIE-LABlab(32.64, 49.90, -33.21)
CIE-LCHlch(32.64, 59.94, 326.36°)
OKLaboklab(44.09% 0.1372 -0.0922)
OKLCHoklch(44.09% 0.165 326.1)
XYZxyz(13.2948, 7.3713, 21.8373)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2582 #298225
analogous
#4F2582 #7E2582 #822558
triadic
#7E2582 #827E25 #25827E
tetradic
#7E2582 #824F25 #298225 #255882
square
#7E2582 #824F25 #298225 #255882
split-complementary
#7E2582 #588225 #25824F
monochromatic
#220A23 #501752 #7E2582 #AC33B2 #C953CE

Accessibility & contrast

On white

8.49
#7E2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2582
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2582#FFFFFF#000000##FFFFFF
##7E25821.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114685
Deuteranopia (green-blind)
#3A5180
Tritanopia (blue-blind)
#813451
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2582;
/* rgb */ color: rgb(126, 37, 130);
/* oklch */ color: oklch(44.1% 0.165 326.1);
Tailwind
colors: {
  custom: {
    50: '#a668a7',
    500: '#7e2582',
    950: '#000000',
  },
}
SCSS
$custom: #7e2582;
$custom-light: #a668a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2582",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 297.419,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44087,
    "c": 0.16529,
    "h": 326.1
  },
  "luminance": 0.0737
}

Semantic roles & 50–950 ramp

primary
#7E2582
secondary
#55B250
accent
#DF494F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2582

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

Preview Lab → · Contrast checker → · Palette generator →

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