#7E2488#7E2488

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

Color values

HEX#7E2488
RGBrgb(126, 36, 136)
HSLhsl(294, 58%, 34%)
HSVhsv(294, 74%, 53%)
CMYKcmyk(7.4%, 73.5%, 0%, 46.7%)
CIE-LABlab(32.87, 51.39, -36.58)
CIE-LCHlch(32.87, 63.08, 324.56°)
OKLaboklab(44.37% 0.1381 -0.102)
OKLCHoklch(44.37% 0.172 323.6)
XYZxyz(13.6786, 7.4758, 24.0103)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2488 #2E8824
analogous
#4C2488 #7E2488 #882460
triadic
#7E2488 #887E24 #24887E
tetradic
#7E2488 #884C24 #2E8824 #246088
square
#7E2488 #884C24 #2E8824 #246088
split-complementary
#7E2488 #608824 #24884C
monochromatic
#240A27 #511758 #7E2488 #AB31B8 #C555D2

Accessibility & contrast

On white

8.42
#7E2488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2488
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2488#FFFFFF#000000##FFFFFF
##7E24881.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478B
Deuteranopia (green-blind)
#355186
Tritanopia (blue-blind)
#803654
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2488;
/* rgb */ color: rgb(126, 36, 136);
/* oklch */ color: oklch(44.4% 0.172 323.6);
Tailwind
colors: {
  custom: {
    50: '#a768ab',
    500: '#7e2488',
    950: '#000000',
  },
}
SCSS
$custom: #7e2488;
$custom-light: #a768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2488",
  "rgb": {
    "r": 126,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 294,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.1717,
    "h": 323.6
  },
  "luminance": 0.07475
}

Semantic roles & 50–950 ramp

primary
#7E2488
secondary
#5CB652
accent
#E14656
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2488

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

Preview Lab → · Contrast checker → · Palette generator →

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