#7A166C#7A166C

#7A166C is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.162 H 334.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7A166C
RGBrgb(122, 22, 108)
HSLhsl(308, 69%, 28%)
HSVhsv(308, 82%, 48%)
CMYKcmyk(0%, 82%, 11.5%, 52.2%)
CIE-LABlab(28.89, 50.32, -25.26)
CIE-LCHlch(28.89, 56.30, 333.35°)
OKLaboklab(40.86% 0.1468 -0.0692)
OKLCHoklch(40.86% 0.162 334.8)
XYZxyz(11.0199, 5.7951, 14.7226)
Luminance0.0579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166C #167A24
analogous
#56167A #7A166C #7A163A
triadic
#7A166C #6C7A16 #166C7A
tetradic
#7A166C #7A5616 #167A24 #163A7A
square
#7A166C #7A5616 #167A24 #163A7A
split-complementary
#7A166C #3A7A16 #167A56
monochromatic
#1A0517 #460D3E #7A166C #AE1F9A #DA31C2

Accessibility & contrast

On white

9.73
#7A166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7A166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A166C
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166C#FFFFFF#000000##FFFFFF
##7A166C1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6E
Deuteranopia (green-blind)
#3B496A
Tritanopia (blue-blind)
#802040
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166c;
/* rgb */ color: rgb(122, 22, 108);
/* oklch */ color: oklch(40.9% 0.162 334.8);
Tailwind
colors: {
  custom: {
    50: '#a46196',
    500: '#7a166c',
    950: '#000000',
  },
}
SCSS
$custom: #7a166c;
$custom-light: #a46196;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166c",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 308.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40858,
    "c": 0.16228,
    "h": 334.8
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#7A166C
secondary
#3DAF4D
accent
#EC543C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A166C

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

Preview Lab → · Contrast checker → · Palette generator →

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