#7C1872#7C1872

#7C1872 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.166 H 332.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7C1872
RGBrgb(124, 24, 114)
HSLhsl(306, 68%, 29%)
HSVhsv(306, 81%, 49%)
CMYKcmyk(0%, 80.6%, 8.1%, 51.4%)
CIE-LABlab(29.80, 51.15, -27.64)
CIE-LCHlch(29.80, 58.14, 331.61°)
OKLaboklab(41.69% 0.1475 -0.076)
OKLCHoklch(41.69% 0.166 332.7)
XYZxyz(11.6761, 6.1543, 16.4893)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1872 #187C22
analogous
#54187C #7C1872 #7C1840
triadic
#7C1872 #727C18 #18727C
tetradic
#7C1872 #7C5418 #187C22 #18407C
square
#7C1872 #7C5418 #187C22 #18407C
split-complementary
#7C1872 #407C18 #187C54
monochromatic
#1A0518 #490E43 #7C1872 #AF22A1 #D836C8

Accessibility & contrast

On white

9.41
#7C1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7C1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1872
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1872#FFFFFF#000000##FFFFFF
##7C18721.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#822444
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c1872;
/* rgb */ color: rgb(124, 24, 114);
/* oklch */ color: oklch(41.7% 0.166 332.7);
Tailwind
colors: {
  custom: {
    50: '#a5629b',
    500: '#7c1872',
    950: '#000000',
  },
}
SCSS
$custom: #7c1872;
$custom-light: #a5629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1872",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 306,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.16588,
    "h": 332.7
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#7C1872
secondary
#3FB14B
accent
#EA4F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1872

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

Preview Lab → · Contrast checker → · Palette generator →

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