#7A157B#7A157B

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

Color values

HEX#7A157B
RGBrgb(122, 21, 123)
HSLhsl(299, 71%, 28%)
HSVhsv(299, 83%, 48%)
CMYKcmyk(0.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(29.68, 53.04, -33.57)
CIE-LCHlch(29.68, 62.77, 327.67°)
OKLaboklab(41.7% 0.1476 -0.0932)
OKLCHoklch(41.7% 0.175 327.7)
XYZxyz(11.8692, 6.1049, 19.2883)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A157B #167B15
analogous
#47157B #7A157B #7B1549
triadic
#7A157B #7B7A15 #157B7A
tetradic
#7A157B #7B4715 #167B15 #15497B
square
#7A157B #7B4715 #167B15 #15497B
split-complementary
#7A157B #497B15 #157B47
monochromatic
#1A041A #460C47 #7A157B #AE1EAF #DA2FDB

Accessibility & contrast

On white

9.46
#7A157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A157B
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A157B#FFFFFF#000000##FFFFFF
##7A157B1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#334A79
Tritanopia (blue-blind)
#7E2849
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a157b;
/* rgb */ color: rgb(122, 21, 123);
/* oklch */ color: oklch(41.7% 0.175 327.7);
Tailwind
colors: {
  custom: {
    50: '#a461a2',
    500: '#7a157b',
    950: '#000000',
  },
}
SCSS
$custom: #7a157b;
$custom-light: #a461a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a157b",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 299.412,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.17456,
    "h": 327.7
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#7A157B
secondary
#3DB03B
accent
#EE3A3C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A157B

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

Preview Lab → · Contrast checker → · Palette generator →

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