#7B167C#7B167C

#7B167C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.175 H 327.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7B167C
RGBrgb(123, 22, 124)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(0.8%, 82.3%, 0%, 51.4%)
CIE-LABlab(30.01, 53.15, -33.66)
CIE-LCHlch(30.01, 62.91, 327.66°)
OKLaboklab(42% 0.1479 -0.0935)
OKLCHoklch(42% 0.175 327.7)
XYZxyz(12.0932, 6.2409, 19.6325)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B167C #177C16
analogous
#48167C #7B167C #7C164A
triadic
#7B167C #7C7B16 #167C7B
tetradic
#7B167C #7C4816 #177C16 #164A7C
square
#7B167C #7C4816 #177C16 #164A7C
split-complementary
#7B167C #4A7C16 #167C48
monochromatic
#1A051A #470D48 #7B167C #AF1FB0 #D932DB

Accessibility & contrast

On white

9.34
#7B167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7B167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B167C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B167C#FFFFFF#000000##FFFFFF
##7B167C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#7F284A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b167c;
/* rgb */ color: rgb(123, 22, 124);
/* oklch */ color: oklch(42.0% 0.175 327.7);
Tailwind
colors: {
  custom: {
    50: '#a562a2',
    500: '#7b167c',
    950: '#000000',
  },
}
SCSS
$custom: #7b167c;
$custom-light: #a562a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b167c",
  "rgb": {
    "r": 123,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 299.412,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.17494,
    "h": 327.7
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#7B167C
secondary
#3EB13D
accent
#ED3B3D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B167C

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

Preview Lab → · Contrast checker → · Palette generator →

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