#7C1780#7C1780

#7C1780 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.178 H 326.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7C1780
RGBrgb(124, 23, 128)
HSLhsl(298, 70%, 30%)
HSVhsv(298, 82%, 50%)
CMYKcmyk(3.1%, 82%, 0%, 49.8%)
CIE-LABlab(30.54, 53.77, -35.32)
CIE-LCHlch(30.54, 64.34, 326.70°)
OKLaboklab(42.48% 0.148 -0.0983)
OKLCHoklch(42.48% 0.178 326.4)
XYZxyz(12.5146, 6.4573, 21.0051)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1780 #1B8017
analogous
#471780 #7C1780 #801750
triadic
#7C1780 #807C17 #17807C
tetradic
#7C1780 #804717 #1B8017 #175080
square
#7C1780 #804717 #1B8017 #175080
split-complementary
#7C1780 #508017 #178047
monochromatic
#19051A #4A0E4C #7C1780 #AE20B4 #D536DB

Accessibility & contrast

On white

9.17
#7C1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1780
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1780#FFFFFF#000000##FFFFFF
##7C17801.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#324C7E
Tritanopia (blue-blind)
#7F2B4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c1780;
/* rgb */ color: rgb(124, 23, 128);
/* oklch */ color: oklch(42.5% 0.178 326.4);
Tailwind
colors: {
  custom: {
    50: '#a662a5',
    500: '#7c1780',
    950: '#000000',
  },
}
SCSS
$custom: #7c1780;
$custom-light: #a662a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1780",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 297.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42483,
    "c": 0.17767,
    "h": 326.4
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#7C1780
secondary
#43B43E
accent
#EC3B42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1780

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

Preview Lab → · Contrast checker → · Palette generator →

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