#7A1D82#7A1D82

#7A1D82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.173 H 324.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7A1D82
RGBrgb(122, 29, 130)
HSLhsl(295, 64%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(6.2%, 77.7%, 0%, 49%)
CIE-LABlab(30.95, 51.88, -35.95)
CIE-LCHlch(30.95, 63.11, 325.28°)
OKLaboklab(42.75% 0.1405 -0.1002)
OKLCHoklch(42.75% 0.173 324.5)
XYZxyz(12.4943, 6.6288, 21.7362)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D82 #25821D
analogous
#471D82 #7A1D82 #821D57
triadic
#7A1D82 #827A1D #1D827A
tetradic
#7A1D82 #82471D #25821D #1D5782
square
#7A1D82 #82471D #25821D #1D5782
split-complementary
#7A1D82 #57821D #1D8247
monochromatic
#1C071E #4B1250 #7A1D82 #A928B4 #CA44D5

Accessibility & contrast

On white

9.03
#7A1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D82
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D82#FFFFFF#000000##FFFFFF
##7A1D821.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#314D80
Tritanopia (blue-blind)
#7D304F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1d82;
/* rgb */ color: rgb(122, 29, 130);
/* oklch */ color: oklch(42.7% 0.173 324.5);
Tailwind
colors: {
  custom: {
    50: '#a464a7',
    500: '#7a1d82',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d82;
$custom-light: #a464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d82",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 295.248,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42746,
    "c": 0.17256,
    "h": 324.5
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#7A1D82
secondary
#4EB546
accent
#E7414E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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