#7A2A8F#7A2A8F

#7A2A8F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.169 H 318.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7A2A8F
RGBrgb(122, 42, 143)
HSLhsl(288, 55%, 36%)
HSVhsv(288, 71%, 56%)
CMYKcmyk(14.7%, 70.6%, 0%, 43.9%)
CIE-LABlab(33.51, 49.44, -39.90)
CIE-LCHlch(33.51, 63.53, 321.10°)
OKLaboklab(44.85% 0.1264 -0.1119)
OKLCHoklch(44.85% 0.169 318.5)
XYZxyz(13.8113, 7.7773, 26.7549)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A8F #3F8F2A
analogous
#482A8F #7A2A8F #8F2A72
triadic
#7A2A8F #8F7A2A #2A8F7A
tetradic
#7A2A8F #8F482A #3F8F2A #2A728F
square
#7A2A8F #8F482A #3F8F2A #2A728F
split-complementary
#7A2A8F #728F2A #2A8F48
monochromatic
#290E30 #521C60 #7A2A8F #A238BE #BA62D1

Accessibility & contrast

On white

8.22
#7A2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A8F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A8F#FFFFFF#000000##FFFFFF
##7A2A8F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#2F518D
Tritanopia (blue-blind)
#7A3D59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2a8f;
/* rgb */ color: rgb(122, 42, 143);
/* oklch */ color: oklch(44.8% 0.169 318.5);
Tailwind
colors: {
  custom: {
    50: '#a46bb0',
    500: '#7a2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a8f;
$custom-light: #a46bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a8f",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 287.525,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44845,
    "c": 0.1688,
    "h": 318.5
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#7A2A8F
secondary
#70B75E
accent
#DE4A69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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