#7B1778#7B1778

#7B1778 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 329.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7B1778
RGBrgb(123, 23, 120)
HSLhsl(302, 68%, 29%)
HSVhsv(302, 81%, 48%)
CMYKcmyk(0%, 81.3%, 2.4%, 51.8%)
CIE-LABlab(29.86, 52.20, -31.36)
CIE-LCHlch(29.86, 60.90, 329.00°)
OKLaboklab(41.81% 0.1472 -0.0868)
OKLCHoklch(41.81% 0.171 329.5)
XYZxyz(11.8649, 6.1807, 18.3338)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1778 #177B1A
analogous
#4C177B #7B1778 #7B1746
triadic
#7B1778 #787B17 #17787B
tetradic
#7B1778 #7B4C17 #177B1A #17467B
square
#7B1778 #7B4C17 #177B1A #17467B
split-complementary
#7B1778 #467B17 #177B4C
monochromatic
#1A0519 #470D46 #7B1778 #AF21AA #D933D4

Accessibility & contrast

On white

9.39
#7B1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7B1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1778
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1778#FFFFFF#000000##FFFFFF
##7B17781.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7B
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#802748
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1778;
/* rgb */ color: rgb(123, 23, 120);
/* oklch */ color: oklch(41.8% 0.171 329.5);
Tailwind
colors: {
  custom: {
    50: '#a5629f',
    500: '#7b1778',
    950: '#000000',
  },
}
SCSS
$custom: #7b1778;
$custom-light: #a5629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1778",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 301.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.17092,
    "h": 329.5
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#7B1778
secondary
#3EB041
accent
#EB423C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1778

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

Preview Lab → · Contrast checker → · Palette generator →

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