#7A156A#7A156A

#7A156A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.162 H 335.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#7A156A
RGBrgb(122, 21, 106)
HSLhsl(310, 71%, 28%)
HSVhsv(310, 83%, 48%)
CMYKcmyk(0%, 82.8%, 13.1%, 52.2%)
CIE-LABlab(28.68, 50.29, -24.29)
CIE-LCHlch(28.68, 55.85, 334.22°)
OKLaboklab(40.67% 0.1475 -0.0664)
OKLCHoklch(40.67% 0.162 335.8)
XYZxyz(10.8959, 5.7155, 14.1622)
Luminance0.0571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156A #157A25
analogous
#57157A #7A156A #7A1537
triadic
#7A156A #6A7A15 #156A7A
tetradic
#7A156A #7A5715 #157A25 #15377A
square
#7A156A #7A5715 #157A25 #15377A
split-complementary
#7A156A #377A15 #157A57
monochromatic
#1A0417 #460C3D #7A156A #AE1E97 #DB2EC0

Accessibility & contrast

On white

9.80
#7A156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7A156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A156A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156A#FFFFFF#000000##FFFFFF
##7A156A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163A6C
Deuteranopia (green-blind)
#3C4968
Tritanopia (blue-blind)
#811E3F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156a;
/* rgb */ color: rgb(122, 21, 106);
/* oklch */ color: oklch(40.7% 0.162 335.8);
Tailwind
colors: {
  custom: {
    50: '#a46095',
    500: '#7a156a',
    950: '#000000',
  },
}
SCSS
$custom: #7a156a;
$custom-light: #a46095;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156a",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 309.505,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40675,
    "c": 0.16176,
    "h": 335.8
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#7A156A
secondary
#3BAF4E
accent
#ED573A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A156A

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

Preview Lab → · Contrast checker → · Palette generator →

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