#7B166E#7B166E

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

Color values

HEX#7B166E
RGBrgb(123, 22, 110)
HSLhsl(308, 70%, 28%)
HSVhsv(308, 82%, 48%)
CMYKcmyk(0%, 82.1%, 10.6%, 51.8%)
CIE-LABlab(29.19, 50.86, -26.06)
CIE-LCHlch(29.19, 57.15, 332.87°)
OKLaboklab(41.14% 0.1479 -0.0714)
OKLCHoklch(41.14% 0.164 334.2)
XYZxyz(11.2699, 5.9116, 15.2963)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B166E #167B23
analogous
#55167B #7B166E #7B163B
triadic
#7B166E #6E7B16 #166E7B
tetradic
#7B166E #7B5516 #167B23 #163B7B
square
#7B166E #7B5516 #167B23 #163B7B
split-complementary
#7B166E #3B7B16 #167B55
monochromatic
#1A0517 #470D40 #7B166E #AF1F9C #DA31C4

Accessibility & contrast

On white

9.62
#7B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B166E
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B166E#FFFFFF#000000##FFFFFF
##7B166E1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C70
Deuteranopia (green-blind)
#3B4A6C
Tritanopia (blue-blind)
#812142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b166e;
/* rgb */ color: rgb(123, 22, 110);
/* oklch */ color: oklch(41.1% 0.164 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7b166e',
    950: '#000000',
  },
}
SCSS
$custom: #7b166e;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7b166e",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 307.723,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.16428,
    "h": 334.2
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#7B166E
secondary
#3DB04C
accent
#EC523B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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