#7A167C#7A167C

#7A167C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.174 H 327.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7A167C
RGBrgb(122, 22, 124)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(1.6%, 82.3%, 0%, 51.4%)
CIE-LABlab(29.83, 52.94, -33.96)
CIE-LCHlch(29.83, 62.90, 327.32°)
OKLaboklab(41.83% 0.1468 -0.0944)
OKLCHoklch(41.83% 0.174 327.3)
XYZxyz(11.9509, 6.1675, 19.6259)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A167C #187C16
analogous
#47167C #7A167C #7C164B
triadic
#7A167C #7C7A16 #167C7A
tetradic
#7A167C #7C4716 #187C16 #164B7C
square
#7A167C #7C4716 #187C16 #164B7C
split-complementary
#7A167C #4B7C16 #167C47
monochromatic
#1A051A #470D48 #7A167C #AD1FB0 #D732DB

Accessibility & contrast

On white

9.40
#7A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A167C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A167C#FFFFFF#000000##FFFFFF
##7A167C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#324B7A
Tritanopia (blue-blind)
#7E294A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a167c;
/* rgb */ color: rgb(122, 22, 124);
/* oklch */ color: oklch(41.8% 0.174 327.3);
Tailwind
colors: {
  custom: {
    50: '#a462a2',
    500: '#7a167c',
    950: '#000000',
  },
}
SCSS
$custom: #7a167c;
$custom-light: #a462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a167c",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 298.824,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.17448,
    "h": 327.3
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#7A167C
secondary
#3FB13D
accent
#ED3B3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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