#7C1D87#7C1D87

#7C1D87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.178 H 323.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7C1D87
RGBrgb(124, 29, 135)
HSLhsl(294, 65%, 32%)
HSVhsv(294, 79%, 53%)
CMYKcmyk(8.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.61, 53.22, -37.98)
CIE-LCHlch(31.61, 65.38, 324.48°)
OKLaboklab(43.39% 0.1425 -0.1061)
OKLCHoklch(43.39% 0.178 323.3)
XYZxyz(13.1243, 6.9139, 23.5602)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D87 #28871D
analogous
#471D87 #7C1D87 #871D5D
triadic
#7C1D87 #877C1D #1D877C
tetradic
#7C1D87 #87471D #28871D #1D5D87
square
#7C1D87 #87471D #28871D #1D5D87
split-complementary
#7C1D87 #5D871D #1D8747
monochromatic
#1F0722 #4E1255 #7C1D87 #AA28B9 #C847D7

Accessibility & contrast

On white

8.81
#7C1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7C1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1D87
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D87#FFFFFF#000000##FFFFFF
##7C1D871.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7E3251
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1d87;
/* rgb */ color: rgb(124, 29, 135);
/* oklch */ color: oklch(43.4% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#a565aa',
    500: '#7c1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d87;
$custom-light: #a565aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d87",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 293.774,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43387,
    "c": 0.17766,
    "h": 323.3
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

primary
#7C1D87
secondary
#52B946
accent
#E84052
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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