#7A177E#7A177E

#7A177E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.175 H 326.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7A177E
RGBrgb(122, 23, 126)
HSLhsl(298, 69%, 29%)
HSVhsv(298, 82%, 49%)
CMYKcmyk(3.2%, 81.7%, 0%, 50.6%)
CIE-LABlab(30.05, 53.01, -34.86)
CIE-LCHlch(30.05, 63.45, 326.67°)
OKLaboklab(42.03% 0.1459 -0.097)
OKLCHoklch(42.03% 0.175 326.4)
XYZxyz(12.0981, 6.2576, 20.3052)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A177E #1B7E17
analogous
#47177E #7A177E #7E174F
triadic
#7A177E #7E7A17 #177E7A
tetradic
#7A177E #7E4717 #1B7E17 #174F7E
square
#7A177E #7E4717 #1B7E17 #174F7E
split-complementary
#7A177E #4F7E17 #177E47
monochromatic
#19051A #480E4A #7A177E #AC20B2 #D435DA

Accessibility & contrast

On white

9.33
#7A177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7A177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A177E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A177E#FFFFFF#000000##FFFFFF
##7A177E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7D2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a177e;
/* rgb */ color: rgb(122, 23, 126);
/* oklch */ color: oklch(42.0% 0.175 326.4);
Tailwind
colors: {
  custom: {
    50: '#a462a4',
    500: '#7a177e',
    950: '#000000',
  },
}
SCSS
$custom: #7a177e;
$custom-light: #a462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a177e",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 297.67,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.17517,
    "h": 326.4
  },
  "luminance": 0.06257
}

Semantic roles & 50–950 ramp

primary
#7A177E
secondary
#43B33E
accent
#EC3C43
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A177E

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

Preview Lab → · Contrast checker → · Palette generator →

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