#7C1786#7C1786

#7C1786 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.182 H 323.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7C1786
RGBrgb(124, 23, 134)
HSLhsl(295, 71%, 31%)
HSVhsv(295, 83%, 53%)
CMYKcmyk(7.5%, 82.8%, 0%, 47.5%)
CIE-LABlab(30.93, 54.83, -38.46)
CIE-LCHlch(30.93, 66.97, 324.95°)
OKLaboklab(42.88% 0.1475 -0.1075)
OKLCHoklch(42.88% 0.182 323.9)
XYZxyz(12.9213, 6.6199, 23.1468)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1786 #218617
analogous
#451786 #7C1786 #861758
triadic
#7C1786 #867C17 #17867C
tetradic
#7C1786 #864517 #218617 #175886
square
#7C1786 #864517 #218617 #175886
split-complementary
#7C1786 #588617 #178645
monochromatic
#1B051E #4C0E52 #7C1786 #AC20BA #CF3ADD

Accessibility & contrast

On white

9.04
#7C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7C1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1786
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1786#FFFFFF#000000##FFFFFF
##7C17861.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#2E4D84
Tritanopia (blue-blind)
#7E2E50
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1786;
/* rgb */ color: rgb(124, 23, 134);
/* oklch */ color: oklch(42.9% 0.182 323.9);
Tailwind
colors: {
  custom: {
    50: '#a663aa',
    500: '#7c1786',
    950: '#000000',
  },
}
SCSS
$custom: #7c1786;
$custom-light: #a663aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1786",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 294.595,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42882,
    "c": 0.18247,
    "h": 323.9
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#7C1786
secondary
#4ABA3F
accent
#ED3A4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1786

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

Preview Lab → · Contrast checker → · Palette generator →

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