#7A2A82#7A2A82

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

Color values

HEX#7A2A82
RGBrgb(122, 42, 130)
HSLhsl(295, 51%, 34%)
HSVhsv(295, 68%, 51%)
CMYKcmyk(6.2%, 67.7%, 0%, 49%)
CIE-LABlab(32.71, 46.87, -33.13)
CIE-LCHlch(32.71, 57.39, 324.74°)
OKLaboklab(44.01% 0.1267 -0.0921)
OKLCHoklch(44.01% 0.157 324)
XYZxyz(12.8829, 7.4060, 21.8657)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A82 #32822A
analogous
#4E2A82 #7A2A82 #822A5E
triadic
#7A2A82 #827A2A #2A827A
tetradic
#7A2A82 #824E2A #32822A #2A5E82
square
#7A2A82 #824E2A #32822A #2A5E82
split-complementary
#7A2A82 #5E822A #2A824E
monochromatic
#230C25 #4F1B54 #7A2A82 #A539B0 #C05CCA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2A82#FFFFFF#000000##FFFFFF
##7A2A821.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)
#164785
Deuteranopia (green-blind)
#395080
Tritanopia (blue-blind)
#7C3852
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2a82;
/* rgb */ color: rgb(122, 42, 130);
/* oklch */ color: oklch(44.0% 0.157 324.0);
Tailwind
colors: {
  custom: {
    50: '#a36aa7',
    500: '#7a2a82',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a82;
$custom-light: #a36aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a82",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 294.545,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44012,
    "c": 0.15664,
    "h": 324
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#7A2A82
secondary
#60B058
accent
#DB4D5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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