#7A166D#7A166D

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

Color values

HEX#7A166D
RGBrgb(122, 22, 109)
HSLhsl(308, 69%, 28%)
HSVhsv(308, 82%, 48%)
CMYKcmyk(0%, 82%, 10.7%, 52.2%)
CIE-LABlab(28.94, 50.48, -25.81)
CIE-LCHlch(28.94, 56.69, 332.92°)
OKLaboklab(40.92% 0.1469 -0.0708)
OKLCHoklch(40.92% 0.163 334.3)
XYZxyz(11.0734, 5.8165, 15.0045)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166D #167A23
analogous
#55167A #7A166D #7A163B
triadic
#7A166D #6D7A16 #166D7A
tetradic
#7A166D #7A5516 #167A23 #163B7A
square
#7A166D #7A5516 #167A23 #163B7A
split-complementary
#7A166D #3B7A16 #167A55
monochromatic
#1A0517 #460D3F #7A166D #AE1F9B #DA31C4

Accessibility & contrast

On white

9.71
#7A166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A166D
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166D#FFFFFF#000000##FFFFFF
##7A166D1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#3B496B
Tritanopia (blue-blind)
#802041
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166d;
/* rgb */ color: rgb(122, 22, 109);
/* oklch */ color: oklch(40.9% 0.163 334.3);
Tailwind
colors: {
  custom: {
    50: '#a46197',
    500: '#7a166d',
    950: '#000000',
  },
}
SCSS
$custom: #7a166d;
$custom-light: #a46197;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166d",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 307.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.16301,
    "h": 334.3
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#7A166D
secondary
#3DAF4B
accent
#EC533C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A166D

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

Preview Lab → · Contrast checker → · Palette generator →

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