#7A178F#7A178F

#7A178F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.2% C 0.189 H 319.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7A178F
RGBrgb(122, 23, 143)
HSLhsl(290, 72%, 33%)
HSVhsv(290, 84%, 56%)
CMYKcmyk(14.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(31.19, 56.09, -43.63)
CIE-LCHlch(31.19, 71.06, 322.12°)
OKLaboklab(43.2% 0.1438 -0.1227)
OKLCHoklch(43.2% 0.189 319.5)
XYZxyz(13.2897, 6.7342, 26.5811)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A178F #2C8F17
analogous
#3E178F #7A178F #8F1768
triadic
#7A178F #8F7A17 #178F7A
tetradic
#7A178F #8F3E17 #2C8F17 #17688F
square
#7A178F #8F3E17 #2C8F17 #17688F
split-complementary
#7A178F #688F17 #178F3E
monochromatic
#200626 #4D0F5A #7A178F #A71FC4 #C440E0

Accessibility & contrast

On white

8.95
#7A178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A178F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A178F#FFFFFF#000000##FFFFFF
##7A178F1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#224D8C
Tritanopia (blue-blind)
#7A3355
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a178f;
/* rgb */ color: rgb(122, 23, 143);
/* oklch */ color: oklch(43.2% 0.189 319.5);
Tailwind
colors: {
  custom: {
    50: '#a563b0',
    500: '#7a178f',
    950: '#000000',
  },
}
SCSS
$custom: #7a178f;
$custom-light: #a563b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a178f",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 289.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43199,
    "c": 0.18904,
    "h": 319.5
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#7A178F
secondary
#57C141
accent
#EF3959
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A178F

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

Preview Lab → · Contrast checker → · Palette generator →

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