#7A166E#7A166E

#7A166E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.164 H 333.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7A166E
RGBrgb(122, 22, 110)
HSLhsl(307, 69%, 28%)
HSVhsv(307, 82%, 48%)
CMYKcmyk(0%, 82%, 9.8%, 52.2%)
CIE-LABlab(29.00, 50.63, -26.37)
CIE-LCHlch(29.00, 57.09, 332.49°)
OKLaboklab(40.97% 0.1469 -0.0724)
OKLCHoklch(40.97% 0.164 333.8)
XYZxyz(11.1275, 5.8382, 15.2897)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166E #167A22
analogous
#54167A #7A166E #7A163C
triadic
#7A166E #6E7A16 #166E7A
tetradic
#7A166E #7A5416 #167A22 #163C7A
square
#7A166E #7A5416 #167A22 #163C7A
split-complementary
#7A166E #3C7A16 #167A54
monochromatic
#1A0517 #460D3F #7A166E #AE1F9D #DA31C5

Accessibility & contrast

On white

9.69
#7A166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A166E
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166E#FFFFFF#000000##FFFFFF
##7A166E1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B70
Deuteranopia (green-blind)
#3A496C
Tritanopia (blue-blind)
#802142
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166e;
/* rgb */ color: rgb(122, 22, 110);
/* oklch */ color: oklch(41.0% 0.164 333.8);
Tailwind
colors: {
  custom: {
    50: '#a46198',
    500: '#7a166e',
    950: '#000000',
  },
}
SCSS
$custom: #7a166e;
$custom-light: #a46198;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166e",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 307.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40973,
    "c": 0.16375,
    "h": 333.8
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#7A166E
secondary
#3DAF4A
accent
#EC513C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A166E

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

Preview Lab → · Contrast checker → · Palette generator →

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