#7C167A#7C167A

#7C167A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.174 H 329.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7C167A
RGBrgb(124, 22, 122)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 82%, 49%)
CMYKcmyk(0%, 82.3%, 1.6%, 51.4%)
CIE-LABlab(30.07, 53.03, -32.29)
CIE-LCHlch(30.07, 62.08, 328.66°)
OKLaboklab(42.03% 0.1491 -0.0895)
OKLCHoklch(42.03% 0.174 329)
XYZxyz(12.1118, 6.2650, 18.9799)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167A #167C18
analogous
#4B167C #7C167A #7C1647
triadic
#7C167A #7A7C16 #167A7C
tetradic
#7C167A #7C4B16 #167C18 #16477C
square
#7C167A #7C4B16 #167C18 #16477C
split-complementary
#7C167A #477C16 #167C4B
monochromatic
#1A051A #480D47 #7C167A #B01FAD #DB32D7

Accessibility & contrast

On white

9.32
#7C167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7C167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C167A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C167A#FFFFFF#000000##FFFFFF
##7C167A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#364B78
Tritanopia (blue-blind)
#802748
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c167a;
/* rgb */ color: rgb(124, 22, 122);
/* oklch */ color: oklch(42.0% 0.174 329.0);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7c167a',
    950: '#000000',
  },
}
SCSS
$custom: #7c167a;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167a",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 301.176,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42033,
    "c": 0.17385,
    "h": 329
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#7C167A
secondary
#3DB13F
accent
#ED3F3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C167A

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

Preview Lab → · Contrast checker → · Palette generator →

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