#7A156C#7A156C

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

Color values

HEX#7A156C
RGBrgb(122, 21, 108)
HSLhsl(308, 71%, 28%)
HSVhsv(308, 83%, 48%)
CMYKcmyk(0%, 82.8%, 11.5%, 52.2%)
CIE-LABlab(28.79, 50.60, -25.41)
CIE-LCHlch(28.79, 56.62, 333.33°)
OKLaboklab(40.79% 0.1476 -0.0696)
OKLCHoklch(40.79% 0.163 334.8)
XYZxyz(11.0011, 5.7576, 14.7164)
Luminance0.0576 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156C #157A23
analogous
#55157A #7A156C #7A1539
triadic
#7A156C #6C7A15 #156C7A
tetradic
#7A156C #7A5515 #157A23 #15397A
square
#7A156C #7A5515 #157A23 #15397A
split-complementary
#7A156C #397A15 #157A55
monochromatic
#1A0417 #460C3E #7A156C #AE1E9A #DB2EC3

Accessibility & contrast

On white

9.76
#7A156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7A156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A156C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156C#FFFFFF#000000##FFFFFF
##7A156C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6E
Deuteranopia (green-blind)
#3B496A
Tritanopia (blue-blind)
#801F40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156c;
/* rgb */ color: rgb(122, 21, 108);
/* oklch */ color: oklch(40.8% 0.163 334.8);
Tailwind
colors: {
  custom: {
    50: '#a46096',
    500: '#7a156c',
    950: '#000000',
  },
}
SCSS
$custom: #7a156c;
$custom-light: #a46096;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156c",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 308.317,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40788,
    "c": 0.1632,
    "h": 334.8
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#7A156C
secondary
#3BAF4B
accent
#ED533A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A156C

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

Preview Lab → · Contrast checker → · Palette generator →

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