#7C1871#7C1871

#7C1871 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.165 H 333.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7C1871
RGBrgb(124, 24, 113)
HSLhsl(307, 68%, 29%)
HSVhsv(307, 81%, 49%)
CMYKcmyk(0%, 80.6%, 8.9%, 51.4%)
CIE-LABlab(29.74, 50.99, -27.09)
CIE-LCHlch(29.74, 57.74, 332.02°)
OKLaboklab(41.63% 0.1474 -0.0744)
OKLCHoklch(41.63% 0.165 333.2)
XYZxyz(11.6195, 6.1316, 16.1911)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1871 #187C23
analogous
#55187C #7C1871 #7C183F
triadic
#7C1871 #717C18 #18717C
tetradic
#7C1871 #7C5518 #187C23 #183F7C
square
#7C1871 #7C5518 #187C23 #183F7C
split-complementary
#7C1871 #3F7C18 #187C55
monochromatic
#1A0517 #490E42 #7C1871 #AF22A0 #D836C6

Accessibility & contrast

On white

9.43
#7C1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1871
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1871#FFFFFF#000000##FFFFFF
##7C18711.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#822344
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c1871;
/* rgb */ color: rgb(124, 24, 113);
/* oklch */ color: oklch(41.6% 0.165 333.2);
Tailwind
colors: {
  custom: {
    50: '#a5629a',
    500: '#7c1871',
    950: '#000000',
  },
}
SCSS
$custom: #7c1871;
$custom-light: #a5629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1871",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 306.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41628,
    "c": 0.16513,
    "h": 333.2
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#7C1871
secondary
#3FB14C
accent
#EA503D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1871

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

Preview Lab → · Contrast checker → · Palette generator →

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