#7A1D9A#7A1D9A

#7A1D9A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.193 H 315.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7A1D9A
RGBrgb(122, 29, 154)
HSLhsl(285, 68%, 36%)
HSVhsv(285, 81%, 60%)
CMYKcmyk(20.8%, 81.2%, 0%, 39.6%)
CIE-LABlab(32.59, 56.47, -48.12)
CIE-LCHlch(32.59, 74.19, 319.56°)
OKLaboklab(44.43% 0.1374 -0.1359)
OKLCHoklch(44.43% 0.193 315.3)
XYZxyz(14.2972, 7.3500, 31.2311)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D9A #3D9A1D
analogous
#3B1D9A #7A1D9A #9A1D7B
triadic
#7A1D9A #9A7A1D #1D9A7A
tetradic
#7A1D9A #9A3B1D #3D9A1D #1D7B9A
square
#7A1D9A #9A3B1D #3D9A1D #1D7B9A
split-complementary
#7A1D9A #7B9A1D #1D9A3B
monochromatic
#280A33 #511366 #7A1D9A #A327CE #BB53DF

Accessibility & contrast

On white

8.50
#7A1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7A1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D9A
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D9A#FFFFFF#000000##FFFFFF
##7A1D9A1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#174F97
Tritanopia (blue-blind)
#773B5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1d9a;
/* rgb */ color: rgb(122, 29, 154);
/* oklch */ color: oklch(44.4% 0.193 315.3);
Tailwind
colors: {
  custom: {
    50: '#a566b8',
    500: '#7a1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d9a;
$custom-light: #a566b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d9a",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 284.64,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.19321,
    "h": 315.3
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#7A1D9A
secondary
#6EC251
accent
#EB3D69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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