#7E2588#7E2588

#7E2588 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.171 H 323.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2588
RGBrgb(126, 37, 136)
HSLhsl(294, 57%, 34%)
HSVhsv(294, 73%, 53%)
CMYKcmyk(7.4%, 72.8%, 0%, 46.7%)
CIE-LABlab(33.00, 51.01, -36.37)
CIE-LCHlch(33.00, 62.65, 324.52°)
OKLaboklab(44.46% 0.1371 -0.1014)
OKLCHoklch(44.46% 0.171 323.5)
XYZxyz(13.7093, 7.5371, 24.0205)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2588 #2F8825
analogous
#4D2588 #7E2588 #882561
triadic
#7E2588 #887E25 #25887E
tetradic
#7E2588 #884D25 #2F8825 #256188
square
#7E2588 #884D25 #2F8825 #256188
split-complementary
#7E2588 #618825 #25884D
monochromatic
#250B28 #511858 #7E2588 #AB32B8 #C556D1

Accessibility & contrast

On white

8.38
#7E2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2588
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2588#FFFFFF#000000##FFFFFF
##7E25881.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03478B
Deuteranopia (green-blind)
#365186
Tritanopia (blue-blind)
#803654
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2588;
/* rgb */ color: rgb(126, 37, 136);
/* oklch */ color: oklch(44.5% 0.171 323.5);
Tailwind
colors: {
  custom: {
    50: '#a769ab',
    500: '#7e2588',
    950: '#000000',
  },
}
SCSS
$custom: #7e2588;
$custom-light: #a769ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2588",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 293.939,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44463,
    "c": 0.1705,
    "h": 323.5
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#7E2588
secondary
#5DB653
accent
#E04757
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2588

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

Preview Lab → · Contrast checker → · Palette generator →

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