#7B166B#7B166B

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

Color values

HEX#7B166B
RGBrgb(123, 22, 107)
HSLhsl(310, 70%, 28%)
HSVhsv(310, 82%, 48%)
CMYKcmyk(0%, 82.1%, 13%, 51.8%)
CIE-LABlab(29.02, 50.40, -24.39)
CIE-LCHlch(29.02, 55.99, 334.18°)
OKLaboklab(40.97% 0.1478 -0.0666)
OKLCHoklch(40.97% 0.162 335.7)
XYZxyz(11.1093, 5.8473, 14.4506)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B166B #167B26
analogous
#58167B #7B166B #7B1638
triadic
#7B166B #6B7B16 #166B7B
tetradic
#7B166B #7B5816 #167B26 #16387B
square
#7B166B #7B5816 #167B26 #16387B
split-complementary
#7B166B #387B16 #167B58
monochromatic
#1A0517 #470D3E #7B166B #AF1F98 #DA31BF

Accessibility & contrast

On white

9.68
#7B166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B166B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B166B#FFFFFF#000000##FFFFFF
##7B166B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#3D4A69
Tritanopia (blue-blind)
#821F40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b166b;
/* rgb */ color: rgb(123, 22, 107);
/* oklch */ color: oklch(41.0% 0.162 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56195',
    500: '#7b166b',
    950: '#000000',
  },
}
SCSS
$custom: #7b166b;
$custom-light: #a56195;
$custom-dark: #000000;
JSON
{
  "hex": "#7b166b",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 309.505,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40972,
    "c": 0.1621,
    "h": 335.7
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#7B166B
secondary
#3DB04F
accent
#EC573B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B166B

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

Preview Lab → · Contrast checker → · Palette generator →

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