#7A147D#7A147D

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

Color values

HEX#7A147D
RGBrgb(122, 20, 125)
HSLhsl(298, 72%, 28%)
HSVhsv(298, 84%, 49%)
CMYKcmyk(2.4%, 84%, 0%, 51%)
CIE-LABlab(29.71, 53.64, -34.78)
CIE-LCHlch(29.71, 63.93, 327.04°)
OKLaboklab(41.77% 0.1482 -0.0967)
OKLCHoklch(41.77% 0.177 326.9)
XYZxyz(11.9777, 6.1194, 19.9484)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A147D #177D14
analogous
#45147D #7A147D #7D144B
triadic
#7A147D #7D7A14 #147D7A
tetradic
#7A147D #7D4514 #177D14 #144B7D
square
#7A147D #7D4514 #177D14 #144B7D
split-complementary
#7A147D #4B7D14 #147D45
monochromatic
#1A041A #470C48 #7A147D #AD1CB2 #D92EDE

Accessibility & contrast

On white

9.44
#7A147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A147D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A147D#FFFFFF#000000##FFFFFF
##7A147D1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a147d;
/* rgb */ color: rgb(122, 20, 125);
/* oklch */ color: oklch(41.8% 0.177 326.9);
Tailwind
colors: {
  custom: {
    50: '#a461a3',
    500: '#7a147d',
    950: '#000000',
  },
}
SCSS
$custom: #7a147d;
$custom-light: #a461a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a147d",
  "rgb": {
    "r": 122,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 298.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.17697,
    "h": 326.9
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#7A147D
secondary
#3EB23A
accent
#EF393E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A147D

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

Preview Lab → · Contrast checker → · Palette generator →

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