#7B2178#7B2178

#7B2178 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.160 H 329.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7B2178
RGBrgb(123, 33, 120)
HSLhsl(302, 58%, 31%)
HSVhsv(302, 73%, 48%)
CMYKcmyk(0%, 73.2%, 2.4%, 51.8%)
CIE-LABlab(31.01, 48.92, -29.55)
CIE-LCHlch(31.01, 57.15, 328.87°)
OKLaboklab(42.63% 0.1379 -0.0816)
OKLCHoklch(42.63% 0.16 329.4)
XYZxyz(12.1023, 6.6556, 18.4129)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2178 #217B24
analogous
#51217B #7B2178 #7B214B
triadic
#7B2178 #787B21 #21787B
tetradic
#7B2178 #7B5121 #217B24 #214B7B
square
#7B2178 #7B5121 #217B24 #214B7B
split-complementary
#7B2178 #4B7B21 #217B51
monochromatic
#1A071A #4B1449 #7B2178 #AB2EA7 #CE48CA

Accessibility & contrast

On white

9.01
#7B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2178
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2178#FFFFFF#000000##FFFFFF
##7B21781.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15417A
Deuteranopia (green-blind)
#3B4D76
Tritanopia (blue-blind)
#7F2D4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2178;
/* rgb */ color: rgb(123, 33, 120);
/* oklch */ color: oklch(42.6% 0.160 329.4);
Tailwind
colors: {
  custom: {
    50: '#a4669f',
    500: '#7b2178',
    950: '#000000',
  },
}
SCSS
$custom: #7b2178;
$custom-light: #a4669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2178",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 302,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.1602,
    "h": 329.4
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#7B2178
secondary
#4AAE4D
accent
#E14C47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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