#7C166E#7C166E

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

Color values

HEX#7C166E
RGBrgb(124, 22, 110)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 82.3%, 11.3%, 51.4%)
CIE-LABlab(29.38, 51.09, -25.75)
CIE-LCHlch(29.38, 57.21, 333.25°)
OKLaboklab(41.31% 0.149 -0.0705)
OKLCHoklch(41.31% 0.165 334.7)
XYZxyz(11.4137, 5.9857, 15.3031)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C166E #167C24
analogous
#57167C #7C166E #7C163B
triadic
#7C166E #6E7C16 #166E7C
tetradic
#7C166E #7C5716 #167C24 #163B7C
square
#7C166E #7C5716 #167C24 #163B7C
split-complementary
#7C166E #3B7C16 #167C57
monochromatic
#1A0517 #480D40 #7C166E #B01F9C #DB32C3

Accessibility & contrast

On white

9.56
#7C166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C166E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C166E#FFFFFF#000000##FFFFFF
##7C166E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#822042
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c166e;
/* rgb */ color: rgb(124, 22, 110);
/* oklch */ color: oklch(41.3% 0.165 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7c166e',
    950: '#000000',
  },
}
SCSS
$custom: #7c166e;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7c166e",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 308.235,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41313,
    "c": 0.16482,
    "h": 334.7
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#7C166E
secondary
#3DB14D
accent
#ED543B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C166E

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

Preview Lab → · Contrast checker → · Palette generator →

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