#7B1978#7B1978

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

Color values

HEX#7B1978
RGBrgb(123, 25, 120)
HSLhsl(302, 66%, 29%)
HSVhsv(302, 80%, 48%)
CMYKcmyk(0%, 79.7%, 2.4%, 51.8%)
CIE-LABlab(30.07, 51.61, -31.04)
CIE-LCHlch(30.07, 60.23, 328.98°)
OKLaboklab(41.96% 0.1456 -0.0859)
OKLCHoklch(41.96% 0.169 329.5)
XYZxyz(11.9061, 6.2632, 18.3475)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1978 #197B1C
analogous
#4D197B #7B1978 #7B1947
triadic
#7B1978 #787B19 #19787B
tetradic
#7B1978 #7B4D19 #197B1C #19477B
square
#7B1978 #7B4D19 #197B1C #19477B
split-complementary
#7B1978 #477B19 #197B4D
monochromatic
#190519 #480F46 #7B1978 #AE23AA #D738D2

Accessibility & contrast

On white

9.32
#7B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1978
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1978#FFFFFF#000000##FFFFFF
##7B19781.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063F7B
Deuteranopia (green-blind)
#374B76
Tritanopia (blue-blind)
#802848
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1978;
/* rgb */ color: rgb(123, 25, 120);
/* oklch */ color: oklch(42.0% 0.169 329.5);
Tailwind
colors: {
  custom: {
    50: '#a5639f',
    500: '#7b1978',
    950: '#000000',
  },
}
SCSS
$custom: #7b1978;
$custom-light: #a5639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1978",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 301.837,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41956,
    "c": 0.16901,
    "h": 329.5
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#7B1978
secondary
#40AF44
accent
#E9443F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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