#7A1D9C#7A1D9C

#7A1D9C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.195 H 314.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7A1D9C
RGBrgb(122, 29, 156)
HSLhsl(284, 69%, 36%)
HSVhsv(284, 81%, 61%)
CMYKcmyk(21.8%, 81.4%, 0%, 38.8%)
CIE-LABlab(32.74, 56.87, -49.10)
CIE-LCHlch(32.74, 75.14, 319.19°)
OKLaboklab(44.58% 0.137 -0.1388)
OKLCHoklch(44.58% 0.195 314.6)
XYZxyz(14.4651, 7.4171, 32.1157)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D9C #3F9C1D
analogous
#3B1D9C #7A1D9C #9C1D7F
triadic
#7A1D9C #9C7A1D #1D9C7A
tetradic
#7A1D9C #9C3B1D #3F9C1D #1D7F9C
square
#7A1D9C #9C3B1D #3F9C1D #1D7F9C
split-complementary
#7A1D9C #7F9C1D #1D9C3B
monochromatic
#290A35 #521368 #7A1D9C #A227D0 #BA54DF

Accessibility & contrast

On white

8.46
#7A1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D9C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D9C#FFFFFF#000000##FFFFFF
##7A1D9C1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#124F99
Tritanopia (blue-blind)
#773C5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1d9c;
/* rgb */ color: rgb(122, 29, 156);
/* oklch */ color: oklch(44.6% 0.195 314.6);
Tailwind
colors: {
  custom: {
    50: '#a566ba',
    500: '#7a1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d9c;
$custom-light: #a566ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d9c",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 283.937,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.19497,
    "h": 314.6
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#7A1D9C
secondary
#70C252
accent
#EB3C6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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