#7C167E#7C167E

#7C167E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.177 H 327.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7C167E
RGBrgb(124, 22, 126)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(1.6%, 82.5%, 0%, 50.6%)
CIE-LABlab(30.32, 53.70, -34.42)
CIE-LCHlch(30.32, 63.79, 327.34°)
OKLaboklab(42.29% 0.1489 -0.0957)
OKLCHoklch(42.29% 0.177 327.3)
XYZxyz(12.3648, 6.3662, 20.3122)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C167E #187E16
analogous
#48167E #7C167E #7E164C
triadic
#7C167E #7E7C16 #167E7C
tetradic
#7C167E #7E4816 #187E16 #164C7E
square
#7C167E #7E4816 #187E16 #164C7E
split-complementary
#7C167E #4C7E16 #167E48
monochromatic
#1A051A #490D4A #7C167E #AF1FB2 #D833DB

Accessibility & contrast

On white

9.24
#7C167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C167E
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C167E#FFFFFF#000000##FFFFFF
##7C167E1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#80294B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c167e;
/* rgb */ color: rgb(124, 22, 126);
/* oklch */ color: oklch(42.3% 0.177 327.3);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7c167e',
    950: '#000000',
  },
}
SCSS
$custom: #7c167e;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c167e",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 298.846,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42287,
    "c": 0.17697,
    "h": 327.3
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#7C167E
secondary
#3FB33D
accent
#ED3B3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C167E

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

Preview Lab → · Contrast checker → · Palette generator →

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