#7A1C7D#7A1C7D

#7A1C7D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.169 H 326.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7A1C7D
RGBrgb(122, 28, 125)
HSLhsl(298, 63%, 30%)
HSVhsv(298, 78%, 49%)
CMYKcmyk(2.4%, 77.6%, 0%, 51%)
CIE-LABlab(30.52, 51.31, -33.49)
CIE-LCHlch(30.52, 61.27, 326.87°)
OKLaboklab(42.34% 0.1416 -0.093)
OKLCHoklch(42.34% 0.169 326.7)
XYZxyz(12.1428, 6.4496, 20.0034)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1C7D #1F7D1C
analogous
#491C7D #7A1C7D #7D1C50
triadic
#7A1C7D #7D7A1C #1C7D7A
tetradic
#7A1C7D #7D491C #1F7D1C #1C507D
square
#7A1C7D #7D491C #1F7D1C #1C507D
split-complementary
#7A1C7D #507D1C #1C7D49
monochromatic
#180619 #49114B #7A1C7D #AB27AF #CF3FD4

Accessibility & contrast

On white

9.17
#7A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1C7D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1C7D#FFFFFF#000000##FFFFFF
##7A1C7D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7D2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1c7d;
/* rgb */ color: rgb(122, 28, 125);
/* oklch */ color: oklch(42.3% 0.169 326.7);
Tailwind
colors: {
  custom: {
    50: '#a464a3',
    500: '#7a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1c7d;
$custom-light: #a464a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1c7d",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 298.144,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.16947,
    "h": 326.7
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#7A1C7D
secondary
#47B144
accent
#E64146
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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