#7A166A#7A166A

#7A166A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.161 H 335.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#7A166A
RGBrgb(122, 22, 106)
HSLhsl(310, 69%, 28%)
HSVhsv(310, 82%, 48%)
CMYKcmyk(0%, 82%, 13.1%, 52.2%)
CIE-LABlab(28.78, 50.01, -24.14)
CIE-LCHlch(28.78, 55.53, 334.23°)
OKLaboklab(40.74% 0.1467 -0.0659)
OKLCHoklch(40.74% 0.161 335.8)
XYZxyz(10.9146, 5.7530, 14.1685)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166A #167A26
analogous
#58167A #7A166A #7A1638
triadic
#7A166A #6A7A16 #166A7A
tetradic
#7A166A #7A5816 #167A26 #16387A
square
#7A166A #7A5816 #167A26 #16387A
split-complementary
#7A166A #387A16 #167A58
monochromatic
#1A0517 #460D3D #7A166A #AE1F97 #DA31BF

Accessibility & contrast

On white

9.77
#7A166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7A166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A166A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166A#FFFFFF#000000##FFFFFF
##7A166A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173A6C
Deuteranopia (green-blind)
#3C4968
Tritanopia (blue-blind)
#811F3F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166a;
/* rgb */ color: rgb(122, 22, 106);
/* oklch */ color: oklch(40.7% 0.161 335.8);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a166a',
    950: '#000000',
  },
}
SCSS
$custom: #7a166a;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166a",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 309.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.16082,
    "h": 335.8
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#7A166A
secondary
#3DAF4F
accent
#EC583C
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A166A

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

Preview Lab → · Contrast checker → · Palette generator →

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