#7B167A#7B167A

#7B167A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.173 H 328.6°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7B167A
RGBrgb(123, 22, 122)
HSLhsl(301, 70%, 28%)
HSVhsv(301, 82%, 48%)
CMYKcmyk(0%, 82.1%, 0.8%, 51.8%)
CIE-LABlab(29.89, 52.81, -32.59)
CIE-LCHlch(29.89, 62.06, 328.32°)
OKLaboklab(41.87% 0.148 -0.0904)
OKLCHoklch(41.87% 0.173 328.6)
XYZxyz(11.9680, 6.1908, 18.9732)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B167A #167B17
analogous
#49167B #7B167A #7B1647
triadic
#7B167A #7A7B16 #167A7B
tetradic
#7B167A #7B4916 #167B17 #16477B
square
#7B167A #7B4916 #167B17 #16477B
split-complementary
#7B167A #477B16 #167B49
monochromatic
#1A051A #470D47 #7B167A #AF1FAD #DA31D9

Accessibility & contrast

On white

9.38
#7B167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7B167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B167A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B167A#FFFFFF#000000##FFFFFF
##7B167A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7F2748
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b167a;
/* rgb */ color: rgb(123, 22, 122);
/* oklch */ color: oklch(41.9% 0.173 328.6);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7b167a',
    950: '#000000',
  },
}
SCSS
$custom: #7b167a;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b167a",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 300.594,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41868,
    "c": 0.17338,
    "h": 328.6
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#7B167A
secondary
#3DB03E
accent
#EC3D3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B167A

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

Preview Lab → · Contrast checker → · Palette generator →

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