#7C1781#7C1781

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

Color values

HEX#7C1781
RGBrgb(124, 23, 129)
HSLhsl(297, 70%, 30%)
HSVhsv(297, 82%, 51%)
CMYKcmyk(3.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(30.60, 53.95, -35.85)
CIE-LCHlch(30.60, 64.77, 326.39°)
OKLaboklab(42.55% 0.1479 -0.0998)
OKLCHoklch(42.55% 0.178 326)
XYZxyz(12.5808, 6.4837, 21.3535)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1781 #1C8117
analogous
#471781 #7C1781 #811751
triadic
#7C1781 #817C17 #17817C
tetradic
#7C1781 #814717 #1C8117 #175181
square
#7C1781 #814717 #1C8117 #175181
split-complementary
#7C1781 #518117 #178147
monochromatic
#19051A #4A0E4D #7C1781 #AE20B5 #D437DB

Accessibility & contrast

On white

9.14
#7C1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7C1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1781
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1781#FFFFFF#000000##FFFFFF
##7C17811.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#324C7F
Tritanopia (blue-blind)
#7F2B4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c1781;
/* rgb */ color: rgb(124, 23, 129);
/* oklch */ color: oklch(42.5% 0.178 326.0);
Tailwind
colors: {
  custom: {
    50: '#a662a6',
    500: '#7c1781',
    950: '#000000',
  },
}
SCSS
$custom: #7c1781;
$custom-light: #a662a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1781",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 297.17,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42549,
    "c": 0.17846,
    "h": 326
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#7C1781
secondary
#44B53E
accent
#ED3B44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1781

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

Preview Lab → · Contrast checker → · Palette generator →

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