#7B178F#7B178F

#7B178F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.189 H 320.0°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7B178F
RGBrgb(123, 23, 143)
HSLhsl(290, 72%, 33%)
HSVhsv(290, 84%, 56%)
CMYKcmyk(14%, 83.9%, 0%, 43.9%)
CIE-LABlab(31.36, 56.28, -43.34)
CIE-LCHlch(31.36, 71.04, 322.40°)
OKLaboklab(43.35% 0.1451 -0.1218)
OKLCHoklch(43.35% 0.189 320)
XYZxyz(13.4321, 6.8076, 26.5878)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B178F #2B8F17
analogous
#3F178F #7B178F #8F1767
triadic
#7B178F #8F7B17 #178F7B
tetradic
#7B178F #8F3F17 #2B8F17 #17678F
square
#7B178F #8F3F17 #2B8F17 #17678F
split-complementary
#7B178F #678F17 #178F3F
monochromatic
#200626 #4E0F5A #7B178F #A81FC4 #C640E0

Accessibility & contrast

On white

8.89
#7B178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B178F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B178F#FFFFFF#000000##FFFFFF
##7B178F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#7B3355
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b178f;
/* rgb */ color: rgb(123, 23, 143);
/* oklch */ color: oklch(43.4% 0.189 320.0);
Tailwind
colors: {
  custom: {
    50: '#a563b0',
    500: '#7b178f',
    950: '#000000',
  },
}
SCSS
$custom: #7b178f;
$custom-light: #a563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b178f",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 290,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43353,
    "c": 0.18942,
    "h": 320
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#7B178F
secondary
#56C141
accent
#EF3957
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B178F

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

Preview Lab → · Contrast checker → · Palette generator →

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