#7A178E#7A178E

#7A178E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.188 H 319.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7A178E
RGBrgb(122, 23, 142)
HSLhsl(290, 72%, 32%)
HSVhsv(290, 84%, 56%)
CMYKcmyk(14.1%, 83.8%, 0%, 44.3%)
CIE-LABlab(31.12, 55.90, -43.12)
CIE-LCHlch(31.12, 70.60, 322.35°)
OKLaboklab(43.13% 0.144 -0.1212)
OKLCHoklch(43.13% 0.188 319.9)
XYZxyz(13.2143, 6.7041, 26.1839)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A178E #2B8E17
analogous
#3F178E #7A178E #8E1767
triadic
#7A178E #8E7A17 #178E7A
tetradic
#7A178E #8E3F17 #2B8E17 #17678E
square
#7A178E #8E3F17 #2B8E17 #17678E
split-complementary
#7A178E #678E17 #178E3F
monochromatic
#1F0625 #4D0E59 #7A178E #A720C3 #C53FE0

Accessibility & contrast

On white

8.97
#7A178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7A178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A178E
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A178E#FFFFFF#000000##FFFFFF
##7A178E1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#234C8B
Tritanopia (blue-blind)
#7A3354
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a178e;
/* rgb */ color: rgb(122, 23, 142);
/* oklch */ color: oklch(43.1% 0.188 319.9);
Tailwind
colors: {
  custom: {
    50: '#a463b0',
    500: '#7a178e',
    950: '#000000',
  },
}
SCSS
$custom: #7a178e;
$custom-light: #a463b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a178e",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 289.916,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43127,
    "c": 0.1882,
    "h": 319.9
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#7A178E
secondary
#56C040
accent
#EF3958
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A178E

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

Preview Lab → · Contrast checker → · Palette generator →

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