#7C1987#7C1987

#7C1987 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.182 H 323.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7C1987
RGBrgb(124, 25, 135)
HSLhsl(294, 69%, 31%)
HSVhsv(294, 81%, 53%)
CMYKcmyk(8.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(31.19, 54.45, -38.66)
CIE-LCHlch(31.19, 66.78, 324.62°)
OKLaboklab(43.09% 0.1458 -0.1081)
OKLCHoklch(43.09% 0.182 323.5)
XYZxyz(13.0326, 6.7304, 23.5296)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1987 #248719
analogous
#451987 #7C1987 #87195B
triadic
#7C1987 #877C19 #19877C
tetradic
#7C1987 #874519 #248719 #195B87
square
#7C1987 #874519 #248719 #195B87
split-complementary
#7C1987 #5B8719 #198745
monochromatic
#1D0620 #4D0F53 #7C1987 #AB23BB #CC3FDB

Accessibility & contrast

On white

8.95
#7C1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1987
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1987#FFFFFF#000000##FFFFFF
##7C19871.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#7E3051
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1987;
/* rgb */ color: rgb(124, 25, 135);
/* oklch */ color: oklch(43.1% 0.182 323.5);
Tailwind
colors: {
  custom: {
    50: '#a663aa',
    500: '#7c1987',
    950: '#000000',
  },
}
SCSS
$custom: #7c1987;
$custom-light: #a663aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1987",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 294,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43086,
    "c": 0.18151,
    "h": 323.5
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#7C1987
secondary
#4DBA41
accent
#EC3C4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1987

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

Preview Lab → · Contrast checker → · Palette generator →

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