#7C166C#7C166C

#7C166C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.163 H 335.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#7C166C
RGBrgb(124, 22, 108)
HSLhsl(309, 70%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 82.3%, 12.9%, 51.4%)
CIE-LABlab(29.27, 50.78, -24.64)
CIE-LCHlch(29.27, 56.44, 334.12°)
OKLaboklab(41.2% 0.1489 -0.0673)
OKLCHoklch(41.2% 0.163 335.7)
XYZxyz(11.3060, 5.9427, 14.7361)
Luminance0.0594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C166C #167C26
analogous
#59167C #7C166C #7C1639
triadic
#7C166C #6C7C16 #166C7C
tetradic
#7C166C #7C5916 #167C26 #16397C
square
#7C166C #7C5916 #167C26 #16397C
split-complementary
#7C166C #397C16 #167C59
monochromatic
#1A0517 #480D3F #7C166C #B01F99 #DB32C0

Accessibility & contrast

On white

9.60
#7C166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7C166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C166C
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C166C#FFFFFF#000000##FFFFFF
##7C166C1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#831F41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c166c;
/* rgb */ color: rgb(124, 22, 108);
/* oklch */ color: oklch(41.2% 0.163 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56196',
    500: '#7c166c',
    950: '#000000',
  },
}
SCSS
$custom: #7c166c;
$custom-light: #a56196;
$custom-dark: #000000;
JSON
{
  "hex": "#7c166c",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 309.412,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.16338,
    "h": 335.7
  },
  "luminance": 0.05942
}

Semantic roles & 50–950 ramp

primary
#7C166C
secondary
#3DB14F
accent
#ED573B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C166C

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

Preview Lab → · Contrast checker → · Palette generator →

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