#7A177F#7A177F

#7A177F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.176 H 325.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7A177F
RGBrgb(122, 23, 127)
HSLhsl(297, 69%, 29%)
HSVhsv(297, 82%, 50%)
CMYKcmyk(3.9%, 81.9%, 0%, 50.2%)
CIE-LABlab(30.12, 53.18, -35.39)
CIE-LCHlch(30.12, 63.88, 326.36°)
OKLaboklab(42.1% 0.1458 -0.0986)
OKLCHoklch(42.1% 0.176 325.9)
XYZxyz(12.1630, 6.2835, 20.6468)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A177F #1C7F17
analogous
#46177F #7A177F #7F1750
triadic
#7A177F #7F7A17 #177F7A
tetradic
#7A177F #7F4617 #1C7F17 #17507F
square
#7A177F #7F4617 #1C7F17 #17507F
split-complementary
#7A177F #507F17 #177F46
monochromatic
#19051A #480E4B #7A177F #AC20B3 #D336DB

Accessibility & contrast

On white

9.31
#7A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A177F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A177F#FFFFFF#000000##FFFFFF
##7A177F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7D2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a177f;
/* rgb */ color: rgb(122, 23, 127);
/* oklch */ color: oklch(42.1% 0.176 325.9);
Tailwind
colors: {
  custom: {
    50: '#a462a5',
    500: '#7a177f',
    950: '#000000',
  },
}
SCSS
$custom: #7a177f;
$custom-light: #a462a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a177f",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 297.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.17597,
    "h": 325.9
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#7A177F
secondary
#44B43E
accent
#EC3C44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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