#7A1D7D#7A1D7D

#7A1D7D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.168 H 326.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7A1D7D
RGBrgb(122, 29, 125)
HSLhsl(298, 62%, 30%)
HSVhsv(298, 77%, 49%)
CMYKcmyk(2.4%, 76.8%, 0%, 51%)
CIE-LABlab(30.64, 50.98, -33.31)
CIE-LCHlch(30.64, 60.89, 326.84°)
OKLaboklab(42.43% 0.1407 -0.0925)
OKLCHoklch(42.43% 0.168 326.7)
XYZxyz(12.1669, 6.4978, 20.0114)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D7D #207D1D
analogous
#4A1D7D #7A1D7D #7D1D50
triadic
#7A1D7D #7D7A1D #1D7D7A
tetradic
#7A1D7D #7D4A1D #207D1D #1D507D
square
#7A1D7D #7D4A1D #207D1D #1D507D
split-complementary
#7A1D7D #507D1D #1D7D4A
monochromatic
#19061A #4A114B #7A1D7D #AA29AF #CE41D3

Accessibility & contrast

On white

9.13
#7A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7A1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D7D
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D7D#FFFFFF#000000##FFFFFF
##7A1D7D1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1d7d;
/* rgb */ color: rgb(122, 29, 125);
/* oklch */ color: oklch(42.4% 0.168 326.7);
Tailwind
colors: {
  custom: {
    50: '#a464a3',
    500: '#7a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d7d;
$custom-light: #a464a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d7d",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 298.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42425,
    "c": 0.1684,
    "h": 326.7
  },
  "luminance": 0.06497
}

Semantic roles & 50–950 ramp

primary
#7A1D7D
secondary
#49B145
accent
#E54247
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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