#7B1878#7B1878

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

Color values

HEX#7B1878
RGBrgb(123, 24, 120)
HSLhsl(302, 67%, 29%)
HSVhsv(302, 80%, 48%)
CMYKcmyk(0%, 80.5%, 2.4%, 51.8%)
CIE-LABlab(29.96, 51.91, -31.21)
CIE-LCHlch(29.96, 60.57, 328.99°)
OKLaboklab(41.88% 0.1464 -0.0863)
OKLCHoklch(41.88% 0.17 329.5)
XYZxyz(11.8851, 6.2212, 18.3405)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1878 #187B1B
analogous
#4D187B #7B1878 #7B1847
triadic
#7B1878 #787B18 #18787B
tetradic
#7B1878 #7B4D18 #187B1B #18477B
square
#7B1878 #7B4D18 #187B1B #18477B
split-complementary
#7B1878 #477B18 #187B4D
monochromatic
#1A0519 #480E46 #7B1878 #AE22AA #D836D3

Accessibility & contrast

On white

9.36
#7B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1878
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1878#FFFFFF#000000##FFFFFF
##7B18781.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7B
Deuteranopia (green-blind)
#374B76
Tritanopia (blue-blind)
#802748
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1878;
/* rgb */ color: rgb(123, 24, 120);
/* oklch */ color: oklch(41.9% 0.170 329.5);
Tailwind
colors: {
  custom: {
    50: '#a5629f',
    500: '#7b1878',
    950: '#000000',
  },
}
SCSS
$custom: #7b1878;
$custom-light: #a5629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1878",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 301.818,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.16998,
    "h": 329.5
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#7B1878
secondary
#3FB043
accent
#EA433E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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