#7A156F#7A156F

#7A156F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.165 H 333.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7A156F
RGBrgb(122, 21, 111)
HSLhsl(307, 71%, 28%)
HSVhsv(307, 83%, 48%)
CMYKcmyk(0%, 82.8%, 9%, 52.2%)
CIE-LABlab(28.96, 51.07, -27.07)
CIE-LCHlch(28.96, 57.80, 332.07°)
OKLaboklab(40.96% 0.1477 -0.0744)
OKLCHoklch(40.96% 0.165 333.3)
XYZxyz(11.1635, 5.8226, 15.5718)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156F #157A20
analogous
#52157A #7A156F #7A153C
triadic
#7A156F #6F7A15 #156F7A
tetradic
#7A156F #7A5215 #157A20 #153C7A
square
#7A156F #7A5215 #157A20 #153C7A
split-complementary
#7A156F #3C7A15 #157A52
monochromatic
#1A0418 #460C3F #7A156F #AE1E9F #DB2EC8

Accessibility & contrast

On white

9.70
#7A156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A156F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156F#FFFFFF#000000##FFFFFF
##7A156F1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3B71
Deuteranopia (green-blind)
#3A496D
Tritanopia (blue-blind)
#802142
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156f;
/* rgb */ color: rgb(122, 21, 111);
/* oklch */ color: oklch(41.0% 0.165 333.3);
Tailwind
colors: {
  custom: {
    50: '#a46198',
    500: '#7a156f',
    950: '#000000',
  },
}
SCSS
$custom: #7a156f;
$custom-light: #a46198;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156f",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 306.535,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40963,
    "c": 0.16541,
    "h": 333.3
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#7A156F
secondary
#3BAF48
accent
#ED4E3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7A156F

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

Preview Lab → · Contrast checker → · Palette generator →

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