#7A1E7D#7A1E7D

#7A1E7D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.167 H 326.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7A1E7D
RGBrgb(122, 30, 125)
HSLhsl(298, 61%, 30%)
HSVhsv(298, 76%, 49%)
CMYKcmyk(2.4%, 76%, 0%, 51%)
CIE-LABlab(30.75, 50.64, -33.12)
CIE-LCHlch(30.75, 60.50, 326.82°)
OKLaboklab(42.51% 0.1398 -0.092)
OKLCHoklch(42.51% 0.167 326.6)
XYZxyz(12.1918, 6.5476, 20.0197)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1E7D #217D1E
analogous
#4A1E7D #7A1E7D #7D1E50
triadic
#7A1E7D #7D7A1E #1E7D7A
tetradic
#7A1E7D #7D4A1E #217D1E #1E507D
square
#7A1E7D #7D4A1E #217D1E #1E507D
split-complementary
#7A1E7D #507D1E #1E7D4A
monochromatic
#1A061A #4A124C #7A1E7D #AA2AAE #CD43D2

Accessibility & contrast

On white

9.09
#7A1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7A1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1E7D
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1E7D#FFFFFF#000000##FFFFFF
##7A1E7D1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#7D2E4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a1e7d;
/* rgb */ color: rgb(122, 30, 125);
/* oklch */ color: oklch(42.5% 0.167 326.6);
Tailwind
colors: {
  custom: {
    50: '#a465a3',
    500: '#7a1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1e7d;
$custom-light: #a465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1e7d",
  "rgb": {
    "r": 122,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 298.105,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.1673,
    "h": 326.6
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#7A1E7D
secondary
#4AB046
accent
#E44348
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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