#7B177B#7B177B

#7B177B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.173 H 328.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7B177B
RGBrgb(123, 23, 123)
HSLhsl(300, 68%, 29%)
HSVhsv(300, 81%, 48%)
CMYKcmyk(0%, 81.3%, 0%, 51.8%)
CIE-LABlab(30.05, 52.70, -32.97)
CIE-LCHlch(30.05, 62.17, 327.97°)
OKLaboklab(42% 0.1471 -0.0915)
OKLCHoklch(42% 0.173 328.1)
XYZxyz(12.0498, 6.2547, 19.3077)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B177B #177B17
analogous
#49177B #7B177B #7B1749
triadic
#7B177B #7B7B17 #177B7B
tetradic
#7B177B #7B4917 #177B17 #17497B
square
#7B177B #7B4917 #177B17 #17497B
split-complementary
#7B177B #497B17 #177B49
monochromatic
#1A051A #470D47 #7B177B #AF21AF #D933D9

Accessibility & contrast

On white

9.33
#7B177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B177B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B177B#FFFFFF#000000##FFFFFF
##7B177B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b177b;
/* rgb */ color: rgb(123, 23, 123);
/* oklch */ color: oklch(42.0% 0.173 328.1);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7b177b',
    950: '#000000',
  },
}
SCSS
$custom: #7b177b;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b177b",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42,
    "c": 0.17326,
    "h": 328.1
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#7B177B
secondary
#3EB03E
accent
#EB3C3C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B177B

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

Preview Lab → · Contrast checker → · Palette generator →

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