#7A157F#7A157F

#7A157F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.178 H 326.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7A157F
RGBrgb(122, 21, 127)
HSLhsl(297, 72%, 29%)
HSVhsv(297, 83%, 50%)
CMYKcmyk(3.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(29.93, 53.73, -35.69)
CIE-LCHlch(29.93, 64.50, 326.41°)
OKLaboklab(41.96% 0.1473 -0.0994)
OKLCHoklch(41.96% 0.178 326)
XYZxyz(12.1247, 6.2071, 20.6340)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A157F #1A7F15
analogous
#45157F #7A157F #7F154F
triadic
#7A157F #7F7A15 #157F7A
tetradic
#7A157F #7F4515 #1A7F15 #154F7F
square
#7A157F #7F4515 #1A7F15 #154F7F
split-complementary
#7A157F #4F7F15 #157F45
monochromatic
#19041A #480C4A #7A157F #AC1EB4 #D531DD

Accessibility & contrast

On white

9.37
#7A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A157F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A157F#FFFFFF#000000##FFFFFF
##7A157F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#304B7D
Tritanopia (blue-blind)
#7D2A4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a157f;
/* rgb */ color: rgb(122, 21, 127);
/* oklch */ color: oklch(42.0% 0.178 326.0);
Tailwind
colors: {
  custom: {
    50: '#a461a5',
    500: '#7a157f',
    950: '#000000',
  },
}
SCSS
$custom: #7a157f;
$custom-light: #a461a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a157f",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 297.17,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.17771,
    "h": 326
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#7A157F
secondary
#41B43C
accent
#EE3942
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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