#7C117C#7C117C

#7C117C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.9% C 0.179 H 328.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7C117C
RGBrgb(124, 17, 124)
HSLhsl(300, 76%, 28%)
HSVhsv(300, 86%, 49%)
CMYKcmyk(0%, 86.3%, 0%, 51.4%)
CIE-LABlab(29.77, 54.60, -34.04)
CIE-LCHlch(29.77, 64.34, 328.06°)
OKLaboklab(41.86% 0.1525 -0.0945)
OKLCHoklch(41.86% 0.179 328.2)
XYZxyz(12.1506, 6.1422, 19.6105)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C117C #117C11
analogous
#46117C #7C117C #7C1146
triadic
#7C117C #7C7C11 #117C7C
tetradic
#7C117C #7C4611 #117C11 #11467C
square
#7C117C #7C4611 #117C11 #11467C
split-complementary
#7C117C #467C11 #117C46
monochromatic
#1B041B #460A46 #7C117C #B218B2 #E126E1

Accessibility & contrast

On white

9.42
#7C117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C117C
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C117C#FFFFFF#000000##FFFFFF
##7C117C1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#802649
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c117c;
/* rgb */ color: rgb(124, 17, 124);
/* oklch */ color: oklch(41.9% 0.179 328.2);
Tailwind
colors: {
  custom: {
    50: '#a660a2',
    500: '#7c117c',
    950: '#000000',
  },
}
SCSS
$custom: #7c117c;
$custom-light: #a660a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c117c",
  "rgb": {
    "r": 124,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.41857,
    "c": 0.17941,
    "h": 328.2
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#7C117C
secondary
#37B237
accent
#F23535
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C117C

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

Preview Lab → · Contrast checker → · Palette generator →

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