#7C167D#7C167D

#7C167D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.176 H 327.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7C167D
RGBrgb(124, 22, 125)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(0.8%, 82.4%, 0%, 51%)
CIE-LABlab(30.26, 53.53, -33.89)
CIE-LCHlch(30.26, 63.36, 327.66°)
OKLaboklab(42.22% 0.1489 -0.0941)
OKLCHoklch(42.22% 0.176 327.7)
XYZxyz(12.3006, 6.3405, 19.9740)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167D #177D16
analogous
#49167D #7C167D #7D164B
triadic
#7C167D #7D7C16 #167D7C
tetradic
#7C167D #7D4916 #177D16 #164B7D
square
#7C167D #7D4916 #177D16 #164B7D
split-complementary
#7C167D #4B7D16 #167D49
monochromatic
#1A051A #480D49 #7C167D #B01FB1 #D932DB

Accessibility & contrast

On white

9.26
#7C167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7C167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C167D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C167D#FFFFFF#000000##FFFFFF
##7C167D1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#80294A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c167d;
/* rgb */ color: rgb(124, 22, 125);
/* oklch */ color: oklch(42.2% 0.176 327.7);
Tailwind
colors: {
  custom: {
    50: '#a662a3',
    500: '#7c167d',
    950: '#000000',
  },
}
SCSS
$custom: #7c167d;
$custom-light: #a662a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167d",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 299.417,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42223,
    "c": 0.17618,
    "h": 327.7
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#7C167D
secondary
#3EB23D
accent
#ED3B3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C167D

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

Preview Lab → · Contrast checker → · Palette generator →

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