#7C2787#7C2787

#7C2787 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.166 H 322.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7C2787
RGBrgb(124, 39, 135)
HSLhsl(293, 55%, 34%)
HSVhsv(293, 71%, 53%)
CMYKcmyk(8.1%, 71.1%, 0%, 47.1%)
CIE-LABlab(32.89, 49.57, -35.94)
CIE-LCHlch(32.89, 61.23, 324.06°)
OKLaboklab(44.3% 0.1326 -0.1002)
OKLCHoklch(44.3% 0.166 322.9)
XYZxyz(13.4104, 7.4862, 23.6556)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2787 #328727
analogous
#4C2787 #7C2787 #872762
triadic
#7C2787 #877C27 #27877C
tetradic
#7C2787 #874C27 #328727 #276287
square
#7C2787 #874C27 #328727 #276287
split-complementary
#7C2787 #628727 #27874C
monochromatic
#250C28 #501958 #7C2787 #A835B6 #C259CF

Accessibility & contrast

On white

8.41
#7C2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7C2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2787
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2787#FFFFFF#000000##FFFFFF
##7C27871.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#7E3754
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2787;
/* rgb */ color: rgb(124, 39, 135);
/* oklch */ color: oklch(44.3% 0.166 322.9);
Tailwind
colors: {
  custom: {
    50: '#a569aa',
    500: '#7c2787',
    950: '#000000',
  },
}
SCSS
$custom: #7c2787;
$custom-light: #a569aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2787",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 293.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.443,
    "c": 0.16617,
    "h": 322.9
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#7C2787
secondary
#61B456
accent
#DF495A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2787

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

Preview Lab → · Contrast checker → · Palette generator →

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