#7C166D#7C166D

#7C166D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.164 H 335.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#7C166D
RGBrgb(124, 22, 109)
HSLhsl(309, 70%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 82.3%, 12.1%, 51.4%)
CIE-LABlab(29.32, 50.94, -25.19)
CIE-LCHlch(29.32, 56.83, 333.68°)
OKLaboklab(41.26% 0.1489 -0.0689)
OKLCHoklch(41.26% 0.164 335.2)
XYZxyz(11.3596, 5.9641, 15.0180)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C166D #167C25
analogous
#58167C #7C166D #7C163A
triadic
#7C166D #6D7C16 #166D7C
tetradic
#7C166D #7C5816 #167C25 #163A7C
square
#7C166D #7C5816 #167C25 #163A7C
split-complementary
#7C166D #3A7C16 #167C58
monochromatic
#1A0517 #480D3F #7C166D #B01F9B #DB32C2

Accessibility & contrast

On white

9.58
#7C166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C166D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C166D#FFFFFF#000000##FFFFFF
##7C166D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#3D4A6B
Tritanopia (blue-blind)
#832041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c166d;
/* rgb */ color: rgb(124, 22, 109);
/* oklch */ color: oklch(41.3% 0.164 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56197',
    500: '#7c166d',
    950: '#000000',
  },
}
SCSS
$custom: #7c166d;
$custom-light: #a56197;
$custom-dark: #000000;
JSON
{
  "hex": "#7c166d",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 308.824,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41256,
    "c": 0.1641,
    "h": 335.2
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#7C166D
secondary
#3DB14E
accent
#ED553B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C166D

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

Preview Lab → · Contrast checker → · Palette generator →

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