#7B166C#7B166C

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

Color values

HEX#7B166C
RGBrgb(123, 22, 108)
HSLhsl(309, 70%, 28%)
HSVhsv(309, 82%, 48%)
CMYKcmyk(0%, 82.1%, 12.2%, 51.8%)
CIE-LABlab(29.08, 50.55, -24.95)
CIE-LCHlch(29.08, 56.37, 333.73°)
OKLaboklab(41.03% 0.1478 -0.0682)
OKLCHoklch(41.03% 0.163 335.2)
XYZxyz(11.1622, 5.8685, 14.7293)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B166C #167B25
analogous
#57167B #7B166C #7B1639
triadic
#7B166C #6C7B16 #166C7B
tetradic
#7B166C #7B5716 #167B25 #16397B
square
#7B166C #7B5716 #167B25 #16397B
split-complementary
#7B166C #397B16 #167B57
monochromatic
#1A0517 #470D3E #7B166C #AF1F9A #DA31C1

Accessibility & contrast

On white

9.66
#7B166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B166C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B166C#FFFFFF#000000##FFFFFF
##7B166C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6E
Deuteranopia (green-blind)
#3C4A6A
Tritanopia (blue-blind)
#812040
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b166c;
/* rgb */ color: rgb(123, 22, 108);
/* oklch */ color: oklch(41.0% 0.163 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56196',
    500: '#7b166c',
    950: '#000000',
  },
}
SCSS
$custom: #7b166c;
$custom-light: #a56196;
$custom-dark: #000000;
JSON
{
  "hex": "#7b166c",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 308.911,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.16282,
    "h": 335.2
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#7B166C
secondary
#3DB04E
accent
#EC563B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B166C

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

Preview Lab → · Contrast checker → · Palette generator →

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