#7C2587#7C2587

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

Color values

HEX#7C2587
RGBrgb(124, 37, 135)
HSLhsl(293, 57%, 34%)
HSVhsv(293, 73%, 53%)
CMYKcmyk(8.1%, 72.6%, 0%, 47.1%)
CIE-LABlab(32.61, 50.36, -36.39)
CIE-LCHlch(32.61, 62.13, 324.15°)
OKLaboklab(44.1% 0.1347 -0.1015)
OKLCHoklch(44.1% 0.169 323)
XYZxyz(13.3465, 7.3583, 23.6343)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2587 #308725
analogous
#4B2587 #7C2587 #872561
triadic
#7C2587 #877C25 #25877C
tetradic
#7C2587 #874B25 #308725 #256187
square
#7C2587 #874B25 #308725 #256187
split-complementary
#7C2587 #618725 #25874B
monochromatic
#240B27 #501857 #7C2587 #A832B7 #C356D1

Accessibility & contrast

On white

8.50
#7C2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2587
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2587#FFFFFF#000000##FFFFFF
##7C25871.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02468A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7E3653
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2587;
/* rgb */ color: rgb(124, 37, 135);
/* oklch */ color: oklch(44.1% 0.169 323.0);
Tailwind
colors: {
  custom: {
    50: '#a568aa',
    500: '#7c2587',
    950: '#000000',
  },
}
SCSS
$custom: #7c2587;
$custom-light: #a568aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2587",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 293.265,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44099,
    "c": 0.16867,
    "h": 323
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#7C2587
secondary
#5EB553
accent
#E04859
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2587

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

Preview Lab → · Contrast checker → · Palette generator →

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