#7B2176#7B2176

#7B2176 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.159 H 330.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7B2176
RGBrgb(123, 33, 118)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 48%)
CMYKcmyk(0%, 73.2%, 4.1%, 51.8%)
CIE-LABlab(30.90, 48.57, -28.46)
CIE-LCHlch(30.90, 56.29, 329.63°)
OKLaboklab(42.51% 0.1378 -0.0785)
OKLCHoklch(42.51% 0.159 330.3)
XYZxyz(11.9822, 6.6076, 17.7803)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2176 #217B26
analogous
#53217B #7B2176 #7B2149
triadic
#7B2176 #767B21 #21767B
tetradic
#7B2176 #7B5321 #217B26 #21497B
square
#7B2176 #7B5321 #217B26 #21497B
split-complementary
#7B2176 #497B21 #217B53
monochromatic
#1A0719 #4B1448 #7B2176 #AB2EA4 #CE48C7

Accessibility & contrast

On white

9.05
#7B2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2176
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2176#FFFFFF#000000##FFFFFF
##7B21761.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184178
Deuteranopia (green-blind)
#3C4D74
Tritanopia (blue-blind)
#802C49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2176;
/* rgb */ color: rgb(123, 33, 118);
/* oklch */ color: oklch(42.5% 0.159 330.3);
Tailwind
colors: {
  custom: {
    50: '#a4669e',
    500: '#7b2176',
    950: '#000000',
  },
}
SCSS
$custom: #7b2176;
$custom-light: #a4669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2176",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 303.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.15856,
    "h": 330.3
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#7B2176
secondary
#4AAE4F
accent
#E14F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2176

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

Preview Lab → · Contrast checker → · Palette generator →

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