#7A156B#7A156B

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

Color values

HEX#7A156B
RGBrgb(122, 21, 107)
HSLhsl(309, 71%, 28%)
HSVhsv(309, 83%, 48%)
CMYKcmyk(0%, 82.8%, 12.3%, 52.2%)
CIE-LABlab(28.74, 50.44, -24.85)
CIE-LCHlch(28.74, 56.23, 333.77°)
OKLaboklab(40.73% 0.1476 -0.068)
OKLCHoklch(40.73% 0.162 335.3)
XYZxyz(10.9482, 5.7365, 14.4377)
Luminance0.0573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156B #157A24
analogous
#56157A #7A156B #7A1538
triadic
#7A156B #6B7A15 #156B7A
tetradic
#7A156B #7A5615 #157A24 #15387A
square
#7A156B #7A5615 #157A24 #15387A
split-complementary
#7A156B #387A15 #157A56
monochromatic
#1A0417 #460C3D #7A156B #AE1E99 #DB2EC1

Accessibility & contrast

On white

9.78
#7A156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A156B
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156B#FFFFFF#000000##FFFFFF
##7A156B1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6D
Deuteranopia (green-blind)
#3B4969
Tritanopia (blue-blind)
#801F40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156b;
/* rgb */ color: rgb(122, 21, 107);
/* oklch */ color: oklch(40.7% 0.162 335.3);
Tailwind
colors: {
  custom: {
    50: '#a46095',
    500: '#7a156b',
    950: '#000000',
  },
}
SCSS
$custom: #7a156b;
$custom-light: #a46095;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156b",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 308.911,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40731,
    "c": 0.16248,
    "h": 335.3
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#7A156B
secondary
#3BAF4D
accent
#ED553A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A156B

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

Preview Lab → · Contrast checker → · Palette generator →

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