#7A2A96#7A2A96

#7A2A96 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.175 H 315.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7A2A96
RGBrgb(122, 42, 150)
HSLhsl(284, 56%, 38%)
HSVhsv(284, 72%, 59%)
CMYKcmyk(18.7%, 72%, 0%, 41.2%)
CIE-LABlab(33.97, 50.88, -43.45)
CIE-LCHlch(33.97, 66.91, 319.51°)
OKLaboklab(45.32% 0.1259 -0.1223)
OKLCHoklch(45.32% 0.175 315.8)
XYZxyz(14.3582, 7.9961, 29.6353)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2A96 #46962A
analogous
#442A96 #7A2A96 #962A7C
triadic
#7A2A96 #967A2A #2A967A
tetradic
#7A2A96 #96442A #46962A #2A7C96
square
#7A2A96 #96442A #46962A #2A7C96
split-complementary
#7A2A96 #7C962A #2A9644
monochromatic
#2C0F36 #531D66 #7A2A96 #A137C6 #B866D4

Accessibility & contrast

On white

8.08
#7A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7A2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2A96
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2A96#FFFFFF#000000##FFFFFF
##7A2A961.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#78405D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a2a96;
/* rgb */ color: rgb(122, 42, 150);
/* oklch */ color: oklch(45.3% 0.175 315.8);
Tailwind
colors: {
  custom: {
    50: '#a46bb5',
    500: '#7a2a96',
    950: '#000000',
  },
}
SCSS
$custom: #7a2a96;
$custom-light: #a46bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2a96",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 284.444,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.17547,
    "h": 315.8
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#7A2A96
secondary
#78BA61
accent
#E0486F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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