#7A177A#7A177A

#7A177A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.172 H 328.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7A177A
RGBrgb(122, 23, 122)
HSLhsl(300, 68%, 28%)
HSVhsv(300, 81%, 48%)
CMYKcmyk(0%, 81.1%, 0%, 52.2%)
CIE-LABlab(29.80, 52.32, -32.74)
CIE-LCHlch(29.80, 61.72, 327.96°)
OKLaboklab(41.77% 0.1461 -0.0908)
OKLCHoklch(41.77% 0.172 328.1)
XYZxyz(11.8451, 6.1564, 18.9730)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A177A #177A17
analogous
#48177A #7A177A #7A1748
triadic
#7A177A #7A7A17 #177A7A
tetradic
#7A177A #7A4817 #177A17 #17487A
square
#7A177A #7A4817 #177A17 #17487A
split-complementary
#7A177A #487A17 #177A48
monochromatic
#1A051A #470D47 #7A177A #AD21AD #D933D9

Accessibility & contrast

On white

9.41
#7A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A177A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A177A#FFFFFF#000000##FFFFFF
##7A177A1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#344B78
Tritanopia (blue-blind)
#7E2849
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a177a;
/* rgb */ color: rgb(122, 23, 122);
/* oklch */ color: oklch(41.8% 0.172 328.1);
Tailwind
colors: {
  custom: {
    50: '#a462a1',
    500: '#7a177a',
    950: '#000000',
  },
}
SCSS
$custom: #7a177a;
$custom-light: #a462a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a177a",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 300,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41773,
    "c": 0.17199,
    "h": 328.1
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#7A177A
secondary
#3EAF3E
accent
#EB3D3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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