#7A156E#7A156E

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

Color values

HEX#7A156E
RGBrgb(122, 21, 110)
HSLhsl(307, 71%, 28%)
HSVhsv(307, 83%, 48%)
CMYKcmyk(0%, 82.8%, 9.8%, 52.2%)
CIE-LABlab(28.90, 50.91, -26.52)
CIE-LCHlch(28.90, 57.40, 332.49°)
OKLaboklab(40.9% 0.1477 -0.0728)
OKLCHoklch(40.9% 0.165 333.8)
XYZxyz(11.1088, 5.8007, 15.2834)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A156E #157A21
analogous
#53157A #7A156E #7A153B
triadic
#7A156E #6E7A15 #156E7A
tetradic
#7A156E #7A5315 #157A21 #153B7A
square
#7A156E #7A5315 #157A21 #153B7A
split-complementary
#7A156E #3B7A15 #157A53
monochromatic
#1A0418 #460C3F #7A156E #AE1E9D #DB2EC7

Accessibility & contrast

On white

9.72
#7A156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A156E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A156E#FFFFFF#000000##FFFFFF
##7A156E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B70
Deuteranopia (green-blind)
#3A496C
Tritanopia (blue-blind)
#802041
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a156e;
/* rgb */ color: rgb(122, 21, 110);
/* oklch */ color: oklch(40.9% 0.165 333.8);
Tailwind
colors: {
  custom: {
    50: '#a46198',
    500: '#7a156e',
    950: '#000000',
  },
}
SCSS
$custom: #7a156e;
$custom-light: #a46198;
$custom-dark: #000000;
JSON
{
  "hex": "#7a156e",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 307.129,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40904,
    "c": 0.16467,
    "h": 333.8
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#7A156E
secondary
#3BAF49
accent
#ED503A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A156E

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

Preview Lab → · Contrast checker → · Palette generator →

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