#7A2178#7A2178

#7A2178 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.160 H 328.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7A2178
RGBrgb(122, 33, 120)
HSLhsl(301, 57%, 30%)
HSVhsv(301, 73%, 48%)
CMYKcmyk(0%, 73%, 1.6%, 52.2%)
CIE-LABlab(30.84, 48.67, -29.83)
CIE-LCHlch(30.84, 57.09, 328.49°)
OKLaboklab(42.47% 0.1367 -0.0825)
OKLCHoklch(42.47% 0.16 328.9)
XYZxyz(11.9599, 6.5822, 18.4062)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2178 #217A23
analogous
#4F217A #7A2178 #7A214C
triadic
#7A2178 #787A21 #21787A
tetradic
#7A2178 #7A4F21 #217A23 #214C7A
square
#7A2178 #7A4F21 #217A23 #214C7A
split-complementary
#7A2178 #4C7A21 #217A4F
monochromatic
#1A0719 #4A1449 #7A2178 #AA2EA7 #CD48CA

Accessibility & contrast

On white

9.07
#7A2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2178
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2178#FFFFFF#000000##FFFFFF
##7A21781.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417A
Deuteranopia (green-blind)
#3A4D76
Tritanopia (blue-blind)
#7E2D4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a2178;
/* rgb */ color: rgb(122, 33, 120);
/* oklch */ color: oklch(42.5% 0.160 328.9);
Tailwind
colors: {
  custom: {
    50: '#a4669f',
    500: '#7a2178',
    950: '#000000',
  },
}
SCSS
$custom: #7a2178;
$custom-light: #a4669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2178",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 301.348,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.15965,
    "h": 328.9
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#7A2178
secondary
#4AAD4C
accent
#E14B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A2178

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

Preview Lab → · Contrast checker → · Palette generator →

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