#7C2387#7C2387

#7C2387 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.171 H 323.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7C2387
RGBrgb(124, 35, 135)
HSLhsl(293, 59%, 33%)
HSVhsv(293, 74%, 53%)
CMYKcmyk(8.1%, 74.1%, 0%, 47.1%)
CIE-LABlab(32.34, 51.12, -36.82)
CIE-LCHlch(32.34, 63.00, 324.24°)
OKLaboklab(43.91% 0.1368 -0.1027)
OKLCHoklch(43.91% 0.171 323.1)
XYZxyz(13.2860, 7.2372, 23.6141)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2387 #2E8723
analogous
#4A2387 #7C2387 #872360
triadic
#7C2387 #877C23 #23877C
tetradic
#7C2387 #874A23 #2E8723 #236087
square
#7C2387 #874A23 #2E8723 #236087
split-complementary
#7C2387 #608723 #23874A
monochromatic
#230A26 #4F1656 #7C2387 #A930B8 #C452D2

Accessibility & contrast

On white

8.58
#7C2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7C2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2387
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2387#FFFFFF#000000##FFFFFF
##7C23871.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#335085
Tritanopia (blue-blind)
#7E3553
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c2387;
/* rgb */ color: rgb(124, 35, 135);
/* oklch */ color: oklch(43.9% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#a567aa',
    500: '#7c2387',
    950: '#000000',
  },
}
SCSS
$custom: #7c2387;
$custom-light: #a567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2387",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 293.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.17108,
    "h": 323.1
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#7C2387
secondary
#5BB650
accent
#E24657
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2387

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

Preview Lab → · Contrast checker → · Palette generator →

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