#7C166F#7C166F

#7C166F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 334.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7C166F
RGBrgb(124, 22, 111)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 82.3%, 10.5%, 51.4%)
CIE-LABlab(29.43, 51.25, -26.30)
CIE-LCHlch(29.43, 57.60, 332.83°)
OKLaboklab(41.37% 0.149 -0.0721)
OKLCHoklch(41.37% 0.166 334.2)
XYZxyz(11.4685, 6.0076, 15.5914)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C166F #167C23
analogous
#56167C #7C166F #7C163C
triadic
#7C166F #6F7C16 #166F7C
tetradic
#7C166F #7C5616 #167C23 #163C7C
square
#7C166F #7C5616 #167C23 #163C7C
split-complementary
#7C166F #3C7C16 #167C56
monochromatic
#1A0517 #480D40 #7C166F #B01F9E #DB32C5

Accessibility & contrast

On white

9.54
#7C166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7C166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C166F
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C166F#FFFFFF#000000##FFFFFF
##7C166F1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C71
Deuteranopia (green-blind)
#3C4A6D
Tritanopia (blue-blind)
#822142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c166f;
/* rgb */ color: rgb(124, 22, 111);
/* oklch */ color: oklch(41.4% 0.166 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7c166f',
    950: '#000000',
  },
}
SCSS
$custom: #7c166f;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7c166f",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 307.647,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.16556,
    "h": 334.2
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#7C166F
secondary
#3DB14C
accent
#ED523B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C166F

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

Preview Lab → · Contrast checker → · Palette generator →

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