#7A2A8A#7A2A8A

#7A2A8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.164 H 320.5°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7A2A8A
RGBrgb(122, 42, 138)
HSLhsl(290, 53%, 35%)
HSVhsv(290, 70%, 54%)
CMYKcmyk(11.6%, 69.6%, 0%, 45.9%)
CIE-LABlab(33.20, 48.43, -37.32)
CIE-LCHlch(33.20, 61.15, 322.38°)
OKLaboklab(44.52% 0.1266 -0.1043)
OKLCHoklch(44.52% 0.164 320.5)
XYZxyz(13.4409, 7.6292, 24.8044)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A8A #3A8A2A
analogous
#4A2A8A #7A2A8A #8A2A6A
triadic
#7A2A8A #8A7A2A #2A8A7A
tetradic
#7A2A8A #8A4A2A #3A8A2A #2A6A8A
square
#7A2A8A #8A4A2A #3A8A2A #2A6A8A
split-complementary
#7A2A8A #6A8A2A #2A8A4A
monochromatic
#270D2C #511C5B #7A2A8A #A338B9 #BC60CF

Accessibility & contrast

On white

8.31
#7A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7A2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A8A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A8A#FFFFFF#000000##FFFFFF
##7A2A8A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#7B3B56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2a8a;
/* rgb */ color: rgb(122, 42, 138);
/* oklch */ color: oklch(44.5% 0.164 320.5);
Tailwind
colors: {
  custom: {
    50: '#a36bad',
    500: '#7a2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a8a;
$custom-light: #a36bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a8a",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 290,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44517,
    "c": 0.16407,
    "h": 320.5
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#7A2A8A
secondary
#6AB45B
accent
#DD4B63
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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