#7A157C#7A157C

#7A157C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.175 H 327.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7A157C
RGBrgb(122, 21, 124)
HSLhsl(299, 71%, 28%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(1.6%, 83.1%, 0%, 51.4%)
CIE-LABlab(29.74, 53.21, -34.11)
CIE-LCHlch(29.74, 63.20, 327.34°)
OKLaboklab(41.77% 0.1475 -0.0948)
OKLCHoklch(41.77% 0.175 327.3)
XYZxyz(11.9321, 6.1300, 19.6196)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A157C #177C15
analogous
#46157C #7A157C #7C154A
triadic
#7A157C #7C7A15 #157C7A
tetradic
#7A157C #7C4615 #177C15 #154A7C
square
#7A157C #7C4615 #177C15 #154A7C
split-complementary
#7A157C #4A7C15 #157C46
monochromatic
#1A041A #470C48 #7A157C #AD1EB0 #D930DC

Accessibility & contrast

On white

9.43
#7A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A157C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A157C#FFFFFF#000000##FFFFFF
##7A157C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#324A7A
Tritanopia (blue-blind)
#7E2849
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a157c;
/* rgb */ color: rgb(122, 21, 124);
/* oklch */ color: oklch(41.8% 0.175 327.3);
Tailwind
colors: {
  custom: {
    50: '#a461a2',
    500: '#7a157c',
    950: '#000000',
  },
}
SCSS
$custom: #7a157c;
$custom-light: #a461a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a157c",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 298.835,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41767,
    "c": 0.17535,
    "h": 327.3
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#7A157C
secondary
#3EB13C
accent
#EE3A3E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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