#7C2487#7C2487

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

Color values

HEX#7C2487
RGBrgb(124, 36, 135)
HSLhsl(293, 58%, 34%)
HSVhsv(293, 73%, 53%)
CMYKcmyk(8.1%, 73.3%, 0%, 47.1%)
CIE-LABlab(32.47, 50.75, -36.60)
CIE-LCHlch(32.47, 62.57, 324.20°)
OKLaboklab(44% 0.1358 -0.1021)
OKLCHoklch(44% 0.17 323)
XYZxyz(13.3158, 7.2969, 23.6240)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2487 #2F8724
analogous
#4A2487 #7C2487 #872460
triadic
#7C2487 #877C24 #24877C
tetradic
#7C2487 #874A24 #2F8724 #246087
square
#7C2487 #874A24 #2F8724 #246087
split-complementary
#7C2487 #608724 #24874A
monochromatic
#230A26 #501757 #7C2487 #A831B7 #C354D1

Accessibility & contrast

On white

8.54
#7C2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7C2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2487
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2487#FFFFFF#000000##FFFFFF
##7C24871.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2487;
/* rgb */ color: rgb(124, 36, 135);
/* oklch */ color: oklch(44.0% 0.170 323.0);
Tailwind
colors: {
  custom: {
    50: '#a568aa',
    500: '#7c2487',
    950: '#000000',
  },
}
SCSS
$custom: #7c2487;
$custom-light: #a568aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2487",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 293.333,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.16989,
    "h": 323
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#7C2487
secondary
#5CB551
accent
#E14758
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2487

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

Preview Lab → · Contrast checker → · Palette generator →

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