#7A156D#7A156D

#7A156D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.164 H 334.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#7A156D
RGBrgb(122, 21, 109)
HSLhsl(308, 71%, 28%)
HSVhsv(308, 83%, 48%)
CMYKcmyk(0%, 82.8%, 10.7%, 52.2%)
CIE-LABlab(28.85, 50.75, -25.97)
CIE-LCHlch(28.85, 57.01, 332.91°)
OKLaboklab(40.85% 0.1477 -0.0712)
OKLCHoklch(40.85% 0.164 334.3)
XYZxyz(11.0546, 5.7790, 14.9983)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156D #157A22
analogous
#54157A #7A156D #7A153A
triadic
#7A156D #6D7A15 #156D7A
tetradic
#7A156D #7A5415 #157A22 #153A7A
square
#7A156D #7A5415 #157A22 #153A7A
split-complementary
#7A156D #3A7A15 #157A54
monochromatic
#1A0417 #460C3E #7A156D #AE1E9C #DB2EC5

Accessibility & contrast

On white

9.74
#7A156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7A156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A156D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156D#FFFFFF#000000##FFFFFF
##7A156D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B6F
Deuteranopia (green-blind)
#3B496B
Tritanopia (blue-blind)
#802041
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156d;
/* rgb */ color: rgb(122, 21, 109);
/* oklch */ color: oklch(40.8% 0.164 334.3);
Tailwind
colors: {
  custom: {
    50: '#a46197',
    500: '#7a156d',
    950: '#000000',
  },
}
SCSS
$custom: #7a156d;
$custom-light: #a46197;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156d",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 307.723,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40846,
    "c": 0.16393,
    "h": 334.3
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#7A156D
secondary
#3BAF4A
accent
#ED513A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A156D

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

Preview Lab → · Contrast checker → · Palette generator →

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