#7A178D#7A178D

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

Color values

HEX#7A178D
RGBrgb(122, 23, 141)
HSLhsl(290, 72%, 32%)
HSVhsv(290, 84%, 55%)
CMYKcmyk(13.5%, 83.7%, 0%, 44.7%)
CIE-LABlab(31.05, 55.72, -42.62)
CIE-LCHlch(31.05, 70.15, 322.59°)
OKLaboklab(43.06% 0.1442 -0.1197)
OKLCHoklch(43.06% 0.187 320.3)
XYZxyz(13.1396, 6.6742, 25.7903)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A178D #2A8D17
analogous
#3F178D #7A178D #8D1765
triadic
#7A178D #8D7A17 #178D7A
tetradic
#7A178D #8D3F17 #2A8D17 #17658D
square
#7A178D #8D3F17 #2A8D17 #17658D
split-complementary
#7A178D #658D17 #178D3F
monochromatic
#1F0624 #4C0E58 #7A178D #A820C2 #C63FE0

Accessibility & contrast

On white

9.00
#7A178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A178D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A178D#FFFFFF#000000##FFFFFF
##7A178D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#254C8A
Tritanopia (blue-blind)
#7A3254
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a178d;
/* rgb */ color: rgb(122, 23, 141);
/* oklch */ color: oklch(43.1% 0.187 320.3);
Tailwind
colors: {
  custom: {
    50: '#a463af',
    500: '#7a178d',
    950: '#000000',
  },
}
SCSS
$custom: #7a178d;
$custom-light: #a463af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a178d",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 290.339,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43056,
    "c": 0.18738,
    "h": 320.3
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#7A178D
secondary
#55C040
accent
#EF3956
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A178D

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

Preview Lab → · Contrast checker → · Palette generator →

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