#7A1877#7A1877

#7A1877 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.169 H 329.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7A1877
RGBrgb(122, 24, 119)
HSLhsl(302, 67%, 29%)
HSVhsv(302, 80%, 48%)
CMYKcmyk(0%, 80.3%, 2.5%, 52.2%)
CIE-LABlab(29.72, 51.52, -30.97)
CIE-LCHlch(29.72, 60.11, 328.99°)
OKLaboklab(41.66% 0.1453 -0.0857)
OKLCHoklch(41.66% 0.169 329.5)
XYZxyz(11.6824, 6.1237, 18.0159)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1877 #187A1B
analogous
#4C187A #7A1877 #7A1846
triadic
#7A1877 #777A18 #18777A
tetradic
#7A1877 #7A4C18 #187A1B #18467A
square
#7A1877 #7A4C18 #187A1B #18467A
split-complementary
#7A1877 #467A18 #187A4C
monochromatic
#1A0519 #470E45 #7A1877 #AD22A9 #D735D2

Accessibility & contrast

On white

9.44
#7A1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1877
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1877#FFFFFF#000000##FFFFFF
##7A18771.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053E79
Deuteranopia (green-blind)
#364A75
Tritanopia (blue-blind)
#7F2747
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1877;
/* rgb */ color: rgb(122, 24, 119);
/* oklch */ color: oklch(41.7% 0.169 329.5);
Tailwind
colors: {
  custom: {
    50: '#a4629e',
    500: '#7a1877',
    950: '#000000',
  },
}
SCSS
$custom: #7a1877;
$custom-light: #a4629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1877",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 301.837,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41657,
    "c": 0.1687,
    "h": 329.5
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#7A1877
secondary
#3FAF42
accent
#EA433E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1877

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

Preview Lab → · Contrast checker → · Palette generator →

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