#7B176C#7B176C

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

Color values

HEX#7B176C
RGBrgb(123, 23, 108)
HSLhsl(309, 68%, 29%)
HSVhsv(309, 81%, 48%)
CMYKcmyk(0%, 81.3%, 12.2%, 51.8%)
CIE-LABlab(29.18, 50.26, -24.79)
CIE-LCHlch(29.18, 56.05, 333.75°)
OKLaboklab(41.1% 0.147 -0.0678)
OKLCHoklch(41.1% 0.162 335.2)
XYZxyz(11.1817, 5.9075, 14.7358)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B176C #177B26
analogous
#58177B #7B176C #7B173A
triadic
#7B176C #6C7B17 #176C7B
tetradic
#7B176C #7B5817 #177B26 #173A7B
square
#7B176C #7B5817 #177B26 #173A7B
split-complementary
#7B176C #3A7B17 #177B58
monochromatic
#1A0517 #470D3F #7B176C #AF2199 #D933C0

Accessibility & contrast

On white

9.63
#7B176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B176C
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B176C#FFFFFF#000000##FFFFFF
##7B176C1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#812041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b176c;
/* rgb */ color: rgb(123, 23, 108);
/* oklch */ color: oklch(41.1% 0.162 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56196',
    500: '#7b176c',
    950: '#000000',
  },
}
SCSS
$custom: #7b176c;
$custom-light: #a56196;
$custom-dark: #000000;
JSON
{
  "hex": "#7b176c",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 309,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.411,
    "c": 0.16186,
    "h": 335.2
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#7B176C
secondary
#3EB04F
accent
#EB573C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B176C

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

Preview Lab → · Contrast checker → · Palette generator →

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