#7B167B#7B167B

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

Color values

HEX#7B167B
RGBrgb(123, 22, 123)
HSLhsl(300, 70%, 28%)
HSVhsv(300, 82%, 48%)
CMYKcmyk(0%, 82.1%, 0%, 51.8%)
CIE-LABlab(29.95, 52.98, -33.13)
CIE-LCHlch(29.95, 62.48, 327.99°)
OKLaboklab(41.93% 0.1479 -0.0919)
OKLCHoklch(41.93% 0.174 328.1)
XYZxyz(12.0303, 6.2157, 19.3012)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B167B #167B16
analogous
#48167B #7B167B #7B1648
triadic
#7B167B #7B7B16 #167B7B
tetradic
#7B167B #7B4816 #167B16 #16487B
square
#7B167B #7B4816 #167B16 #16487B
split-complementary
#7B167B #487B16 #167B48
monochromatic
#1A051A #470D47 #7B167B #AF1FAF #DA31DA

Accessibility & contrast

On white

9.36
#7B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B167B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B167B#FFFFFF#000000##FFFFFF
##7B167B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#344B79
Tritanopia (blue-blind)
#7F2849
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b167b;
/* rgb */ color: rgb(123, 22, 123);
/* oklch */ color: oklch(41.9% 0.174 328.1);
Tailwind
colors: {
  custom: {
    50: '#a562a2',
    500: '#7b167b',
    950: '#000000',
  },
}
SCSS
$custom: #7b167b;
$custom-light: #a562a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b167b",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41932,
    "c": 0.17416,
    "h": 328.1
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#7B167B
secondary
#3DB03D
accent
#EC3B3B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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