#7A2182#7A2182

#7A2182 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.168 H 324.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7A2182
RGBrgb(122, 33, 130)
HSLhsl(295, 60%, 32%)
HSVhsv(295, 75%, 51%)
CMYKcmyk(6.2%, 74.6%, 0%, 49%)
CIE-LABlab(31.43, 50.48, -35.17)
CIE-LCHlch(31.43, 61.52, 325.14°)
OKLaboklab(43.09% 0.1366 -0.098)
OKLCHoklch(43.09% 0.168 324.4)
XYZxyz(12.5988, 6.8378, 21.7710)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2182 #298221
analogous
#4A2182 #7A2182 #822159
triadic
#7A2182 #827A21 #21827A
tetradic
#7A2182 #824A21 #298221 #215982
square
#7A2182 #824A21 #298221 #215982
split-complementary
#7A2182 #598221 #21824A
monochromatic
#1E0820 #4C1551 #7A2182 #A82DB3 #C74CD2

Accessibility & contrast

On white

8.87
#7A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2182
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2182#FFFFFF#000000##FFFFFF
##7A21821.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#334E80
Tritanopia (blue-blind)
#7C3250
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a2182;
/* rgb */ color: rgb(122, 33, 130);
/* oklch */ color: oklch(43.1% 0.168 324.4);
Tailwind
colors: {
  custom: {
    50: '#a466a7',
    500: '#7a2182',
    950: '#000000',
  },
}
SCSS
$custom: #7a2182;
$custom-light: #a466a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2182",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 295.052,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43094,
    "c": 0.16812,
    "h": 324.4
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#7A2182
secondary
#53B44A
accent
#E34552
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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