#7B1478#7B1478

#7B1478 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.174 H 329.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7B1478
RGBrgb(123, 20, 120)
HSLhsl(302, 72%, 28%)
HSVhsv(302, 84%, 48%)
CMYKcmyk(0%, 83.7%, 2.4%, 51.8%)
CIE-LABlab(29.58, 53.01, -31.81)
CIE-LCHlch(29.58, 61.82, 329.03°)
OKLaboklab(41.61% 0.1495 -0.0881)
OKLCHoklch(41.61% 0.174 329.5)
XYZxyz(11.8086, 6.0683, 18.3150)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1478 #147B17
analogous
#4B147B #7B1478 #7B1444
triadic
#7B1478 #787B14 #14787B
tetradic
#7B1478 #7B4B14 #147B17 #14447B
square
#7B1478 #7B4B14 #147B17 #14447B
split-complementary
#7B1478 #447B14 #147B4B
monochromatic
#1A041A #460B45 #7B1478 #B01DAB #DD2DD8

Accessibility & contrast

On white

9.49
#7B1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7B1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1478
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1478#FFFFFF#000000##FFFFFF
##7B14781.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#354A76
Tritanopia (blue-blind)
#802547
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1478;
/* rgb */ color: rgb(123, 20, 120);
/* oklch */ color: oklch(41.6% 0.174 329.5);
Tailwind
colors: {
  custom: {
    50: '#a5619f',
    500: '#7b1478',
    950: '#000000',
  },
}
SCSS
$custom: #7b1478;
$custom-light: #a5619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1478",
  "rgb": {
    "r": 123,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 301.748,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41613,
    "c": 0.17356,
    "h": 329.5
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#7B1478
secondary
#3AB13E
accent
#EF3E39
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1478

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

Preview Lab → · Contrast checker → · Palette generator →

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