#7A166B#7A166B

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

Color values

HEX#7A166B
RGBrgb(122, 22, 107)
HSLhsl(309, 69%, 28%)
HSVhsv(309, 82%, 48%)
CMYKcmyk(0%, 82%, 12.3%, 52.2%)
CIE-LABlab(28.83, 50.17, -24.70)
CIE-LCHlch(28.83, 55.92, 333.79°)
OKLaboklab(40.8% 0.1467 -0.0676)
OKLCHoklch(40.8% 0.162 335.3)
XYZxyz(10.9670, 5.7739, 14.4440)
Luminance0.0577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166B #167A25
analogous
#57167A #7A166B #7A1639
triadic
#7A166B #6B7A16 #166B7A
tetradic
#7A166B #7A5716 #167A25 #16397A
square
#7A166B #7A5716 #167A25 #16397A
split-complementary
#7A166B #397A16 #167A57
monochromatic
#1A0517 #460D3E #7A166B #AE1F98 #DA31C0

Accessibility & contrast

On white

9.75
#7A166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A166B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166B#FFFFFF#000000##FFFFFF
##7A166B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6D
Deuteranopia (green-blind)
#3C4969
Tritanopia (blue-blind)
#801F40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166b;
/* rgb */ color: rgb(122, 22, 107);
/* oklch */ color: oklch(40.8% 0.162 335.3);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a166b',
    950: '#000000',
  },
}
SCSS
$custom: #7a166b;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166b",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 309,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40801,
    "c": 0.16155,
    "h": 335.3
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#7A166B
secondary
#3DAF4E
accent
#EC563C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A166B

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

Preview Lab → · Contrast checker → · Palette generator →

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