#7A2A94#7A2A94

#7A2A94 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.174 H 316.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A2A94
RGBrgb(122, 42, 148)
HSLhsl(285, 56%, 37%)
HSVhsv(285, 72%, 58%)
CMYKcmyk(17.6%, 71.6%, 0%, 42%)
CIE-LABlab(33.84, 50.47, -42.44)
CIE-LCHlch(33.84, 65.94, 319.94°)
OKLaboklab(45.18% 0.126 -0.1193)
OKLCHoklch(45.18% 0.174 316.6)
XYZxyz(14.1985, 7.9322, 28.7944)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A94 #44942A
analogous
#452A94 #7A2A94 #942A79
triadic
#7A2A94 #947A2A #2A947A
tetradic
#7A2A94 #94452A #44942A #2A7994
square
#7A2A94 #94452A #44942A #2A7994
split-complementary
#7A2A94 #79942A #2A9445
monochromatic
#2B0F35 #531C64 #7A2A94 #A138C4 #B865D3

Accessibility & contrast

On white

8.12
#7A2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A94
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A94#FFFFFF#000000##FFFFFF
##7A2A941.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2B5292
Tritanopia (blue-blind)
#793F5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2a94;
/* rgb */ color: rgb(122, 42, 148);
/* oklch */ color: oklch(45.2% 0.174 316.6);
Tailwind
colors: {
  custom: {
    50: '#a46bb4',
    500: '#7a2a94',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a94;
$custom-light: #a46bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a94",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 285.283,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.17355,
    "h": 316.6
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#7A2A94
secondary
#76B960
accent
#DF496E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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