#7A166F#7A166F

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

Color values

HEX#7A166F
RGBrgb(122, 22, 111)
HSLhsl(307, 69%, 28%)
HSVhsv(307, 82%, 48%)
CMYKcmyk(0%, 82%, 9%, 52.2%)
CIE-LABlab(29.06, 50.79, -26.92)
CIE-LCHlch(29.06, 57.48, 332.08°)
OKLaboklab(41.03% 0.1469 -0.0739)
OKLCHoklch(41.03% 0.164 333.3)
XYZxyz(11.1823, 5.8601, 15.5780)
Luminance0.0586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A166F #167A21
analogous
#53167A #7A166F #7A163D
triadic
#7A166F #6F7A16 #166F7A
tetradic
#7A166F #7A5316 #167A21 #163D7A
square
#7A166F #7A5316 #167A21 #163D7A
split-complementary
#7A166F #3D7A16 #167A53
monochromatic
#1A0518 #460D40 #7A166F #AE1F9E #DA31C7

Accessibility & contrast

On white

9.67
#7A166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A166F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A166F#FFFFFF#000000##FFFFFF
##7A166F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B71
Deuteranopia (green-blind)
#3A496D
Tritanopia (blue-blind)
#802242
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a166f;
/* rgb */ color: rgb(122, 22, 111);
/* oklch */ color: oklch(41.0% 0.164 333.3);
Tailwind
colors: {
  custom: {
    50: '#a46198',
    500: '#7a166f',
    950: '#000000',
  },
}
SCSS
$custom: #7a166f;
$custom-light: #a46198;
$custom-dark: #000000;
JSON
{
  "hex": "#7a166f",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 306.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.16449,
    "h": 333.3
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#7A166F
secondary
#3DAF49
accent
#EC4F3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A166F

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

Preview Lab → · Contrast checker → · Palette generator →

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