#7B166D#7B166D

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

Color values

HEX#7B166D
RGBrgb(123, 22, 109)
HSLhsl(308, 70%, 28%)
HSVhsv(308, 82%, 48%)
CMYKcmyk(0%, 82.1%, 11.4%, 51.8%)
CIE-LABlab(29.13, 50.71, -25.50)
CIE-LCHlch(29.13, 56.76, 333.30°)
OKLaboklab(41.09% 0.1479 -0.0698)
OKLCHoklch(41.09% 0.164 334.7)
XYZxyz(11.2157, 5.8899, 15.0112)
Luminance0.0589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B166D #167B24
analogous
#56167B #7B166D #7B163A
triadic
#7B166D #6D7B16 #166D7B
tetradic
#7B166D #7B5616 #167B24 #163A7B
square
#7B166D #7B5616 #167B24 #163A7B
split-complementary
#7B166D #3A7B16 #167B56
monochromatic
#1A0517 #470D3F #7B166D #AF1F9B #DA31C3

Accessibility & contrast

On white

9.64
#7B166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7B166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B166D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B166D#FFFFFF#000000##FFFFFF
##7B166D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#812041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b166d;
/* rgb */ color: rgb(123, 22, 109);
/* oklch */ color: oklch(41.1% 0.164 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56197',
    500: '#7b166d',
    950: '#000000',
  },
}
SCSS
$custom: #7b166d;
$custom-light: #a56197;
$custom-dark: #000000;
JSON
{
  "hex": "#7b166d",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 308.317,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41085,
    "c": 0.16356,
    "h": 334.7
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#7B166D
secondary
#3DB04D
accent
#EC543B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B166D

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

Preview Lab → · Contrast checker → · Palette generator →

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