#7A157D#7A157D

#7A157D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.176 H 326.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7A157D
RGBrgb(122, 21, 125)
HSLhsl(298, 71%, 29%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(2.4%, 83.2%, 0%, 51%)
CIE-LABlab(29.80, 53.38, -34.64)
CIE-LCHlch(29.80, 63.64, 327.02°)
OKLaboklab(41.83% 0.1475 -0.0963)
OKLCHoklch(41.83% 0.176 326.8)
XYZxyz(11.9957, 6.1554, 19.9544)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A157D #187D15
analogous
#46157D #7A157D #7D154C
triadic
#7A157D #7D7A15 #157D7A
tetradic
#7A157D #7D4615 #187D15 #154C7D
square
#7A157D #7D4615 #187D15 #154C7D
split-complementary
#7A157D #4C7D15 #157D46
monochromatic
#1A041A #470C49 #7A157D #AD1EB1 #D730DC

Accessibility & contrast

On white

9.41
#7A157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A157D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A157D#FFFFFF#000000##FFFFFF
##7A157D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#314A7B
Tritanopia (blue-blind)
#7E294A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a157d;
/* rgb */ color: rgb(122, 21, 125);
/* oklch */ color: oklch(41.8% 0.176 326.8);
Tailwind
colors: {
  custom: {
    50: '#a461a3',
    500: '#7a157d',
    950: '#000000',
  },
}
SCSS
$custom: #7a157d;
$custom-light: #a461a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a157d",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 298.269,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41832,
    "c": 0.17613,
    "h": 326.8
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#7A157D
secondary
#3FB23C
accent
#EE3A3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A157D

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

Preview Lab → · Contrast checker → · Palette generator →

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