#7B2177#7B2177

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

Color values

HEX#7B2177
RGBrgb(123, 33, 119)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 48%)
CMYKcmyk(0%, 73.2%, 3.3%, 51.8%)
CIE-LABlab(30.95, 48.74, -29.01)
CIE-LCHlch(30.95, 56.72, 329.24°)
OKLaboklab(42.57% 0.1378 -0.08)
OKLCHoklch(42.57% 0.159 329.9)
XYZxyz(12.0419, 6.6315, 18.0950)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2177 #217B25
analogous
#52217B #7B2177 #7B214A
triadic
#7B2177 #777B21 #21777B
tetradic
#7B2177 #7B5221 #217B25 #214A7B
square
#7B2177 #7B5221 #217B25 #214A7B
split-complementary
#7B2177 #4A7B21 #217B52
monochromatic
#1A071A #4B1448 #7B2177 #AB2EA6 #CE48C8

Accessibility & contrast

On white

9.03
#7B2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2177
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2177#FFFFFF#000000##FFFFFF
##7B21771.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174179
Deuteranopia (green-blind)
#3B4D75
Tritanopia (blue-blind)
#802D49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2177;
/* rgb */ color: rgb(123, 33, 119);
/* oklch */ color: oklch(42.6% 0.159 329.9);
Tailwind
colors: {
  custom: {
    50: '#a4669e',
    500: '#7b2177',
    950: '#000000',
  },
}
SCSS
$custom: #7b2177;
$custom-light: #a4669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2177",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 302.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42572,
    "c": 0.15938,
    "h": 329.9
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#7B2177
secondary
#4AAE4E
accent
#E14E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2177

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

Preview Lab → · Contrast checker → · Palette generator →

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