#7A157E#7A157E

#7A157E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.177 H 326.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7A157E
RGBrgb(122, 21, 126)
HSLhsl(298, 71%, 29%)
HSVhsv(298, 83%, 49%)
CMYKcmyk(3.2%, 83.3%, 0%, 50.6%)
CIE-LABlab(29.86, 53.56, -35.16)
CIE-LCHlch(29.86, 64.07, 326.71°)
OKLaboklab(41.9% 0.1474 -0.0979)
OKLCHoklch(41.9% 0.177 326.4)
XYZxyz(12.0599, 6.1811, 20.2925)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A157E #197E15
analogous
#46157E #7A157E #7E154E
triadic
#7A157E #7E7A15 #157E7A
tetradic
#7A157E #7E4615 #197E15 #154E7E
square
#7A157E #7E4615 #197E15 #154E7E
split-complementary
#7A157E #4E7E15 #157E46
monochromatic
#19041A #470C4A #7A157E #AD1EB2 #D631DD

Accessibility & contrast

On white

9.39
#7A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A157E
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A157E#FFFFFF#000000##FFFFFF
##7A157E1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7D294B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a157e;
/* rgb */ color: rgb(122, 21, 126);
/* oklch */ color: oklch(41.9% 0.177 326.4);
Tailwind
colors: {
  custom: {
    50: '#a461a4',
    500: '#7a157e',
    950: '#000000',
  },
}
SCSS
$custom: #7a157e;
$custom-light: #a461a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a157e",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 297.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41897,
    "c": 0.17692,
    "h": 326.4
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#7A157E
secondary
#40B33C
accent
#EE3A41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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